SELECT url_to, r404 FROM pod_redirect WHERE BINARY REPLACE(url_from,'/ru/','/') = '/konstruktory_kits/o_3-constructor_sets-transformery-magplayer-stem.html' LIMIT 0,1 [0.00059819221496582 sec]
SELECT pod_filter.id,pod_filter.url FROM pod_filter WHERE BINARY pod_filter.url IN ('o_3','constructor_sets','transformery','magplayer','stem') order by url [0.0016069412231445 sec]
SELECT pod_sub_icon.id,pod_sub_icon.url FROM pod_sub_icon WHERE BINARY pod_sub_icon.url IN ('o_3','constructor_sets','transformery','magplayer','stem') order by url [0.0012021064758301 sec]
select id,url from pod_cat_brand where BINARY url IN ('o_3','constructor_sets','transformery','magplayer','stem') [0.0020267963409424 sec]
SELECT id, url FROM pod_filter WHERE url IN ('o_3','constructor_sets','transformery','magplayer','stem') [0.00087499618530273 sec]
SELECT id, url FROM pod_sub_icon WHERE url IN ('o_3','constructor_sets','transformery','magplayer','stem') [0.00077700614929199 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_base_goods; CREATE TEMPORARY TABLE tmp_base_goods ( id INT NOT NULL PRIMARY KEY, brand_id INT, price DECIMAL(10,2), old_price DECIMAL(10,2), ordr INT, is_present TINYINT(1), sub_icon_id INT, fast_delivery TINYINT(1), is_new TINYINT(1), is_sale TINYINT(1), KEY idx_brand (brand_id) ) ENGINE=MEMORY [0.00040102005004883 sec]
INSERT INTO tmp_base_goods (id, brand_id, price, old_price, ordr, is_present, sub_icon_id, fast_delivery, is_new, is_sale) SELECT g.id, g.brand_id, g.price, g.old_price, g.ordr, g.is_present, g.sub_icon_id, g.fast_delivery, g.is_new, g.is_sale FROM pod_cat_good g WHERE g.cat_id IN (3297,437,447,446) AND g.entry=0 AND g.is_active AND g.is_present_all_mods UNION SELECT g.id, g.brand_id, g.price, g.old_price, g.ordr, g.is_present, g.sub_icon_id, g.fast_delivery, g.is_new, g.is_sale FROM pod_cat_good g INNER JOIN pod_dop_cat_category dc ON dc.good_id = g.id WHERE dc.dop_cat_id IN (3297,437,447,446) AND g.entry=0 AND g.is_active AND g.is_present_all_mods [0.028578996658325 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_sub_goods; CREATE TEMPORARY TABLE tmp_sub_goods ( id INT NOT NULL PRIMARY KEY, entry INT NOT NULL, price DECIMAL(10,2), old_price DECIMAL(10,2), sub_icon_id INT, is_present TINYINT(1), fast_delivery TINYINT(1), is_new TINYINT(1), is_sale TINYINT(1), KEY idx_entry (entry) ) ENGINE=MEMORY [0.00028395652770996 sec]
INSERT INTO tmp_sub_goods (id, entry, price, old_price, sub_icon_id, is_present, fast_delivery, is_new, is_sale) SELECT go.id, go.entry, go.price, go.old_price, go.sub_icon_id, go.is_present, go.fast_delivery, go.is_new, go.is_sale FROM pod_cat_good go INNER JOIN tmp_base_goods t ON go.entry = t.id WHERE go.is_active AND go.is_present [0.00071597099304199 sec]
SELECT g.id /* cats:3297,437,447,446 */ FROM tmp_base_goods g INNER JOIN pod_good_filter gf0 ON g.id = gf0.id_good AND gf0.filter_id_value in (265) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (466) INNER JOIN pod_good_filter gf2 ON g.id = gf2.id_good AND gf2.filter_id_value in (3460) WHERE g.brand_id IN (2615,1470) AND g.is_present AND 1 UNION SELECT g.id /* cats:3297,437,447,446 */ FROM tmp_sub_goods go INNER JOIN tmp_base_goods g ON go.entry = g.id INNER JOIN pod_good_filter gf0 ON go.id = gf0.id_good AND gf0.filter_id_value in (265) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (466) INNER JOIN pod_good_filter gf2 ON g.id = gf2.id_good AND gf2.filter_id_value in (3460) WHERE g.brand_id IN (2615,1470) AND 1 [0.0074658393859863 sec]
CREATE TEMPORARY TABLE temp_brand_counts_6a2ba6a0e3a57 ( id INT, gid INT, INDEX idx_id (id), INDEX idx_gid (gid) ) [0.00024318695068359 sec]
INSERT INTO temp_brand_counts_6a2ba6a0e3a57 (id, gid) SELECT g.brand_id AS id, g.id AS gid /* cats:3297,437,447,446 */ FROM tmp_base_goods g INNER JOIN pod_good_filter gf0 ON g.id = gf0.id_good AND gf0.filter_id_value in (265) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (466) INNER JOIN pod_good_filter gf2 ON g.id = gf2.id_good AND gf2.filter_id_value in (3460) WHERE g.is_present AND 1 UNION SELECT g.brand_id AS id, g.id AS gid /* cats:3297,437,447,446 */ FROM tmp_sub_goods go INNER JOIN tmp_base_goods g ON go.entry = g.id INNER JOIN pod_good_filter gf0 ON go.id = gf0.id_good AND gf0.filter_id_value in (265) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (466) INNER JOIN pod_good_filter gf2 ON g.id = gf2.id_good AND gf2.filter_id_value in (3460) WHERE 1 UNION SELECT id, null gid FROM pod_cat_category WHERE id in (2615,1470) [0.00078392028808594 sec]
SELECT b.id, b.name_ua AS name, pc.name_ua AS country, b.country_id, b.image_icon, b.url, b.ordr, pc.code, COALESCE(tc.count, 0) as count FROM pod_cat_brand b INNER JOIN ( SELECT id, COUNT(gid) as count FROM temp_brand_counts_6a2ba6a0e3a57 GROUP BY id HAVING COUNT(gid) > 0 ) tc ON b.id = tc.id LEFT JOIN pod_country pc ON (pc.id = b.country_id AND pc.is_active = 1) WHERE b.is_active = '1' ORDER BY b.ordr [0.00032210350036621 sec]
DROP TEMPORARY TABLE IF EXISTS temp_brand_counts_6a2ba6a0e3a57 [0.00010585784912109 sec]
SELECT MIN(min_price) AS min_price, MAX(max_price) AS max_price FROM ( SELECT MIN(g.price) AS min_price, MAX(g.price) AS max_price /* cats:3297,437,447,446 */ FROM tmp_base_goods g INNER JOIN pod_good_filter gf0 ON g.id = gf0.id_good AND gf0.filter_id_value in (265) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (466) INNER JOIN pod_good_filter gf2 ON g.id = gf2.id_good AND gf2.filter_id_value in (3460) WHERE g.brand_id IN (2615,1470) AND g.is_present AND 1 UNION SELECT MIN(go.price) AS min_price, MAX(go.price) AS max_price /* cats:3297,437,447,446 */ FROM tmp_sub_goods go INNER JOIN tmp_base_goods g ON go.entry = g.id INNER JOIN pod_good_filter gf0 ON go.id = gf0.id_good AND gf0.filter_id_value in (265) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (466) INNER JOIN pod_good_filter gf2 ON g.id = gf2.id_good AND gf2.filter_id_value in (3460) WHERE g.brand_id IN (2615,1470) AND 1 ) A [0.00038886070251465 sec]
SELECT g.id,if(g.is_present and g.price >= '0' and g.price <= '99999',least(g.price,ifnull(min(pcg.price),g.price)),ifnull(min(pcg.price),g.price)) min_sort_price , if(g.is_present and g.price >= '0' and g.price <= '99999',greatest(g.price,ifnull(max(pcg.price),g.price)),ifnull(max(pcg.price),g.price)) max_sort_price FROM ( SELECT g.id /* cats:3297,437,447,446 */ FROM tmp_base_goods g INNER JOIN pod_good_filter gf0 ON g.id = gf0.id_good AND gf0.filter_id_value in (265) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (466) INNER JOIN pod_good_filter gf2 ON g.id = gf2.id_good AND gf2.filter_id_value in (3460) WHERE g.brand_id IN (2615,1470) AND g.is_present AND 1 UNION SELECT g.id /* cats:3297,437,447,446 */ FROM tmp_sub_goods go INNER JOIN tmp_base_goods g ON go.entry = g.id INNER JOIN pod_good_filter gf0 ON go.id = gf0.id_good AND gf0.filter_id_value in (265) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (466) INNER JOIN pod_good_filter gf2 ON g.id = gf2.id_good AND gf2.filter_id_value in (3460) WHERE g.brand_id IN (2615,1470) AND 1 ) a INNER JOIN pod_cat_good g ON a.id = g.id LEFT JOIN pod_cat_good pcg ON pcg.entry=g.id and pcg.is_present=1 and pcg.is_present=1 and pcg.price >= '0' and pcg.price <= '99999' GROUP BY g.id ORDER BY g.ordr desc LIMIT 0, 32 [0.001370906829834 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_pairs_sho93sphv1nlinc0uk849ngu8e_6a2ba6a0e7005; CREATE TEMPORARY TABLE tmp_pairs_sho93sphv1nlinc0uk849ngu8e_6a2ba6a0e7005 ( goods_id INT NOT NULL, filter_id INT NOT NULL, PRIMARY KEY (goods_id, filter_id) ) ENGINE=MEMORY; [0.00030708312988281 sec]
INSERT INTO tmp_pairs_sho93sphv1nlinc0uk849ngu8e_6a2ba6a0e7005 (goods_id, filter_id) SELECT DISTINCT t.id AS goods_id, f.id AS filter_id FROM pod_cat_filter cf INNER JOIN pod_filter fm ON cf.filter_id = fm.id AND fm.is_split = 0 AND fm.is_active INNER JOIN pod_good_filter gf USE INDEX (idx_cat_filter_good) ON gf.filter_id = cf.filter_id AND gf.cat_id IN (3297,437,447,446) AND gf.filter_id_value NOT IN (265,466,3460) INNER JOIN pod_filter f ON gf.filter_id_value = f.id AND f.is_active INNER JOIN tmp_base_goods t ON gf.id_good = t.id WHERE cf.category_id = 3297 [0.013455152511597 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_counts_sho93sphv1nlinc0uk849ngu8e_6a2ba6a0e7005; CREATE TEMPORARY TABLE tmp_counts_sho93sphv1nlinc0uk849ngu8e_6a2ba6a0e7005 ( filter_id INT NOT NULL PRIMARY KEY, count INT NOT NULL ) ENGINE=MEMORY; [0.0002439022064209 sec]
INSERT IGNORE INTO tmp_counts_sho93sphv1nlinc0uk849ngu8e_6a2ba6a0e7005 (filter_id, count) SELECT p.filter_id, COUNT(*) AS count FROM tmp_pairs_sho93sphv1nlinc0uk849ngu8e_6a2ba6a0e7005 p GROUP BY p.filter_id [0.00028085708618164 sec]
SELECT c.filter_id, c.count, f.entry, f.name_ua AS name, f.url, f.ord, fm.name_ua AS mname, fm.url AS murl, fm.ord AS mord FROM tmp_counts_sho93sphv1nlinc0uk849ngu8e_6a2ba6a0e7005 c INNER JOIN pod_filter f ON c.filter_id = f.id INNER JOIN pod_filter fm ON f.entry = fm.id ORDER BY fm.ord DESC, f.ord DESC, c.filter_id [0.00037908554077148 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_A_sho93sphv1nlinc0uk849ngu8e_6a2ba6a0e7005 [0.00019001960754395 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_pairs_sho93sphv1nlinc0uk849ngu8e_6a2ba6a0e7005 [0.00010013580322266 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_counts_sho93sphv1nlinc0uk849ngu8e_6a2ba6a0e7005 [8.0108642578125E-5 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_pairs_sho93sphv1nlinc0uk849ngu8e_6a2ba6a0eb047; CREATE TEMPORARY TABLE tmp_pairs_sho93sphv1nlinc0uk849ngu8e_6a2ba6a0eb047 ( goods_id INT NOT NULL, filter_id INT NOT NULL, PRIMARY KEY (goods_id, filter_id) ) ENGINE=MEMORY; [0.00014495849609375 sec]
INSERT INTO tmp_pairs_sho93sphv1nlinc0uk849ngu8e_6a2ba6a0eb047 (goods_id, filter_id) SELECT DISTINCT ts.entry AS goods_id, f.id AS filter_id FROM pod_cat_filter cf INNER JOIN pod_filter fm ON cf.filter_id = fm.id AND fm.is_split = 1 AND fm.is_active INNER JOIN pod_good_filter gf USE INDEX (idx_cat_filter_good) ON gf.filter_id = cf.filter_id AND gf.cat_id IN (3297,437,447,446) AND gf.filter_id_value NOT IN (265,466,3460) INNER JOIN pod_filter f ON gf.filter_id_value = f.id AND f.is_active INNER JOIN tmp_sub_goods ts ON gf.id_good = ts.id WHERE cf.category_id = 3297 [0.00032496452331543 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_counts_sho93sphv1nlinc0uk849ngu8e_6a2ba6a0eb047; CREATE TEMPORARY TABLE tmp_counts_sho93sphv1nlinc0uk849ngu8e_6a2ba6a0eb047 ( filter_id INT NOT NULL PRIMARY KEY, count INT NOT NULL ) ENGINE=MEMORY; [0.00017595291137695 sec]
INSERT IGNORE INTO tmp_counts_sho93sphv1nlinc0uk849ngu8e_6a2ba6a0eb047 (filter_id, count) SELECT p.filter_id, COUNT(*) AS count FROM tmp_pairs_sho93sphv1nlinc0uk849ngu8e_6a2ba6a0eb047 p GROUP BY p.filter_id [0.0001981258392334 sec]
SELECT c.filter_id, c.count, f.entry, f.name_ua AS name, f.url, f.ord, fm.name_ua AS mname, fm.url AS murl, fm.ord AS mord FROM tmp_counts_sho93sphv1nlinc0uk849ngu8e_6a2ba6a0eb047 c INNER JOIN pod_filter f ON c.filter_id = f.id INNER JOIN pod_filter fm ON f.entry = fm.id ORDER BY fm.ord DESC, f.ord DESC, c.filter_id [0.00014305114746094 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_A_sho93sphv1nlinc0uk849ngu8e_6a2ba6a0eb047 [0.00013589859008789 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_pairs_sho93sphv1nlinc0uk849ngu8e_6a2ba6a0eb047 [7.7009201049805E-5 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_counts_sho93sphv1nlinc0uk849ngu8e_6a2ba6a0eb047 [6.4849853515625E-5 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_pairs_sho93sphv1nlinc0uk849ngu8e_6a2ba6a0ebb07; CREATE TEMPORARY TABLE tmp_pairs_sho93sphv1nlinc0uk849ngu8e_6a2ba6a0ebb07 ( goods_id INT NOT NULL, filter_id INT NOT NULL, PRIMARY KEY (goods_id, filter_id) ) ENGINE=MEMORY [0.00018000602722168 sec]
INSERT INTO tmp_pairs_sho93sphv1nlinc0uk849ngu8e_6a2ba6a0ebb07 (goods_id, filter_id) SELECT DISTINCT ts.entry AS goods_id, f.id AS filter_id FROM pod_cat_filter cf INNER JOIN pod_filter fm ON cf.filter_id = fm.id AND fm.is_split = 1 AND fm.is_active INNER JOIN pod_good_filter gf USE INDEX (idx_cat_filter_good) ON gf.filter_id = cf.filter_id AND gf.cat_id IN (3297,437,447,446) AND gf.filter_id = 262 INNER JOIN pod_filter f ON gf.filter_id_value = f.id AND f.is_active INNER JOIN tmp_sub_goods ts ON gf.id_good = ts.id WHERE cf.category_id = 3297 [0.00032591819763184 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_counts_sho93sphv1nlinc0uk849ngu8e_6a2ba6a0ebb07; CREATE TEMPORARY TABLE tmp_counts_sho93sphv1nlinc0uk849ngu8e_6a2ba6a0ebb07 ( filter_id INT NOT NULL PRIMARY KEY, count INT NOT NULL ) ENGINE=MEMORY [0.00019502639770508 sec]
INSERT INTO tmp_counts_sho93sphv1nlinc0uk849ngu8e_6a2ba6a0ebb07 (filter_id, count) SELECT p.filter_id, COUNT(*) AS count FROM tmp_pairs_sho93sphv1nlinc0uk849ngu8e_6a2ba6a0ebb07 p GROUP BY p.filter_id [0.00014805793762207 sec]
INSERT INTO tmp_counts_sho93sphv1nlinc0uk849ngu8e_6a2ba6a0ebb07 (filter_id, count) SELECT pf.id, 0 FROM pod_filter pf LEFT JOIN tmp_counts_sho93sphv1nlinc0uk849ngu8e_6a2ba6a0ebb07 c ON c.filter_id = pf.id WHERE pf.id in (265) AND c.filter_id IS NULL [0.00013613700866699 sec]
SELECT c.filter_id, c.count, f.entry, f.name_ua AS name, f.url, f.ord, fm.name_ua AS mname, fm.url AS murl, fm.ord AS mord FROM tmp_counts_sho93sphv1nlinc0uk849ngu8e_6a2ba6a0ebb07 c INNER JOIN pod_filter f ON c.filter_id = f.id INNER JOIN pod_filter fm ON f.entry = fm.id ORDER BY fm.ord DESC, f.ord DESC, c.filter_id [0.00017499923706055 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_A_sho93sphv1nlinc0uk849ngu8e_6a2ba6a0ebb07 [0.00013089179992676 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_pairs_sho93sphv1nlinc0uk849ngu8e_6a2ba6a0ebb07 [8.0108642578125E-5 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_counts_sho93sphv1nlinc0uk849ngu8e_6a2ba6a0ebb07 [6.9141387939453E-5 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_pairs_sho93sphv1nlinc0uk849ngu8e_6a2ba6a0ec65b; CREATE TEMPORARY TABLE tmp_pairs_sho93sphv1nlinc0uk849ngu8e_6a2ba6a0ec65b ( goods_id INT NOT NULL, filter_id INT NOT NULL, PRIMARY KEY (goods_id, filter_id) ) ENGINE=MEMORY; [0.00015592575073242 sec]
INSERT INTO tmp_pairs_sho93sphv1nlinc0uk849ngu8e_6a2ba6a0ec65b (goods_id, filter_id) SELECT DISTINCT t.id AS goods_id, f.id AS filter_id FROM pod_cat_filter cf INNER JOIN pod_filter fm ON cf.filter_id = fm.id AND fm.is_split = 0 AND fm.is_active INNER JOIN pod_good_filter gf USE INDEX (idx_cat_filter_good) ON gf.filter_id = cf.filter_id AND gf.cat_id IN (3297,437,447,446) AND gf.filter_id = 461 INNER JOIN pod_filter f ON gf.filter_id_value = f.id AND f.is_active INNER JOIN tmp_base_goods t ON gf.id_good = t.id WHERE cf.category_id = 3297 [0.0039589405059814 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_counts_sho93sphv1nlinc0uk849ngu8e_6a2ba6a0ec65b; CREATE TEMPORARY TABLE tmp_counts_sho93sphv1nlinc0uk849ngu8e_6a2ba6a0ec65b ( filter_id INT NOT NULL PRIMARY KEY, count INT NOT NULL ) ENGINE=MEMORY; [0.00019693374633789 sec]
INSERT INTO tmp_counts_sho93sphv1nlinc0uk849ngu8e_6a2ba6a0ec65b (filter_id, count) SELECT p.filter_id, COUNT(*) AS count FROM tmp_pairs_sho93sphv1nlinc0uk849ngu8e_6a2ba6a0ec65b p GROUP BY p.filter_id [0.00019407272338867 sec]
INSERT IGNORE INTO tmp_counts_sho93sphv1nlinc0uk849ngu8e_6a2ba6a0ec65b (filter_id, count) SELECT pf.id, 0 FROM pod_filter pf LEFT JOIN tmp_counts_sho93sphv1nlinc0uk849ngu8e_6a2ba6a0ec65b c ON c.filter_id = pf.id WHERE pf.id in (466) AND c.filter_id IS NULL [0.00012707710266113 sec]
SELECT c.filter_id, c.count, f.entry, f.name_ua AS name, f.url, f.ord, fm.name_ua AS mname, fm.url AS murl, fm.ord AS mord FROM tmp_counts_sho93sphv1nlinc0uk849ngu8e_6a2ba6a0ec65b c INNER JOIN pod_filter f ON c.filter_id = f.id INNER JOIN pod_filter fm ON f.entry = fm.id ORDER BY fm.ord DESC, f.ord DESC, c.filter_id [0.00020694732666016 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_A_sho93sphv1nlinc0uk849ngu8e_6a2ba6a0ec65b [0.00014805793762207 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_pairs_sho93sphv1nlinc0uk849ngu8e_6a2ba6a0ec65b [7.4863433837891E-5 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_counts_sho93sphv1nlinc0uk849ngu8e_6a2ba6a0ec65b [6.2942504882812E-5 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_pairs_sho93sphv1nlinc0uk849ngu8e_6a2ba6a0ee0f4; CREATE TEMPORARY TABLE tmp_pairs_sho93sphv1nlinc0uk849ngu8e_6a2ba6a0ee0f4 ( goods_id INT NOT NULL, filter_id INT NOT NULL, PRIMARY KEY (goods_id, filter_id) ) ENGINE=MEMORY; [0.00013279914855957 sec]
INSERT INTO tmp_pairs_sho93sphv1nlinc0uk849ngu8e_6a2ba6a0ee0f4 (goods_id, filter_id) SELECT DISTINCT t.id AS goods_id, f.id AS filter_id FROM pod_cat_filter cf INNER JOIN pod_filter fm ON cf.filter_id = fm.id AND fm.is_split = 0 AND fm.is_active INNER JOIN pod_good_filter gf USE INDEX (idx_cat_filter_good) ON gf.filter_id = cf.filter_id AND gf.cat_id IN (3297,437,447,446) AND gf.filter_id = 3436 INNER JOIN pod_filter f ON gf.filter_id_value = f.id AND f.is_active INNER JOIN tmp_base_goods t ON gf.id_good = t.id WHERE cf.category_id = 3297 [0.0014739036560059 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_counts_sho93sphv1nlinc0uk849ngu8e_6a2ba6a0ee0f4; CREATE TEMPORARY TABLE tmp_counts_sho93sphv1nlinc0uk849ngu8e_6a2ba6a0ee0f4 ( filter_id INT NOT NULL PRIMARY KEY, count INT NOT NULL ) ENGINE=MEMORY; [0.00020694732666016 sec]
INSERT INTO tmp_counts_sho93sphv1nlinc0uk849ngu8e_6a2ba6a0ee0f4 (filter_id, count) SELECT p.filter_id, COUNT(*) AS count FROM tmp_pairs_sho93sphv1nlinc0uk849ngu8e_6a2ba6a0ee0f4 p GROUP BY p.filter_id [0.00021004676818848 sec]
INSERT IGNORE INTO tmp_counts_sho93sphv1nlinc0uk849ngu8e_6a2ba6a0ee0f4 (filter_id, count) SELECT pf.id, 0 FROM pod_filter pf LEFT JOIN tmp_counts_sho93sphv1nlinc0uk849ngu8e_6a2ba6a0ee0f4 c ON c.filter_id = pf.id WHERE pf.id in (3460) AND c.filter_id IS NULL [0.00013113021850586 sec]
SELECT c.filter_id, c.count, f.entry, f.name_ua AS name, f.url, f.ord, fm.name_ua AS mname, fm.url AS murl, fm.ord AS mord FROM tmp_counts_sho93sphv1nlinc0uk849ngu8e_6a2ba6a0ee0f4 c INNER JOIN pod_filter f ON c.filter_id = f.id INNER JOIN pod_filter fm ON f.entry = fm.id ORDER BY fm.ord DESC, f.ord DESC, c.filter_id [0.00025486946105957 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_A_sho93sphv1nlinc0uk849ngu8e_6a2ba6a0ee0f4 [0.00014710426330566 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_pairs_sho93sphv1nlinc0uk849ngu8e_6a2ba6a0ee0f4 [7.2956085205078E-5 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_counts_sho93sphv1nlinc0uk849ngu8e_6a2ba6a0ee0f4 [6.3896179199219E-5 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_A_sho93sphv1nlinc0uk849ngu8e_6a2ba6a0ef042; CREATE TEMPORARY TABLE tmp_A_sho93sphv1nlinc0uk849ngu8e_6a2ba6a0ef042 ( entry INT NOT NULL, sub_icon_id INT NOT NULL, PRIMARY KEY (entry, sub_icon_id) ) ENGINE=MEMORY; [0.00013613700866699 sec]
INSERT IGNORE INTO tmp_A_sho93sphv1nlinc0uk849ngu8e_6a2ba6a0ef042 (entry, sub_icon_id) SELECT DISTINCT A.entry, A.sub_icon_id FROM ( SELECT g.id as id, g.id as entry, g.sub_icon_id /* cats:3297,437,447,446 */ FROM tmp_base_goods g INNER JOIN pod_good_filter gf0 ON g.id = gf0.id_good AND gf0.filter_id_value in (265) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (466) INNER JOIN pod_good_filter gf2 ON g.id = gf2.id_good AND gf2.filter_id_value in (3460) WHERE g.brand_id IN (2615,1470) AND g.is_present AND 1 UNION SELECT go.id as id, g.id as entry, go.sub_icon_id /* cats:3297,437,447,446 */ FROM tmp_sub_goods go INNER JOIN tmp_base_goods g ON go.entry = g.id INNER JOIN pod_good_filter gf0 ON go.id = gf0.id_good AND gf0.filter_id_value in (265) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (466) INNER JOIN pod_good_filter gf2 ON g.id = gf2.id_good AND gf2.filter_id_value in (3460) WHERE g.brand_id IN (2615,1470) AND 1 ) A [0.0010011196136475 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_counts_sho93sphv1nlinc0uk849ngu8e_6a2ba6a0ef042; CREATE TEMPORARY TABLE tmp_counts_sho93sphv1nlinc0uk849ngu8e_6a2ba6a0ef042 ( sub_icon_id INT NOT NULL PRIMARY KEY, count INT NOT NULL ) ENGINE=MEMORY; [0.00019216537475586 sec]
INSERT IGNORE INTO tmp_counts_sho93sphv1nlinc0uk849ngu8e_6a2ba6a0ef042 (sub_icon_id, count) SELECT sub_icon_id, COUNT(DISTINCT entry) AS count FROM ( SELECT A.entry, A.sub_icon_id FROM tmp_A_sho93sphv1nlinc0uk849ngu8e_6a2ba6a0ef042 A INNER JOIN pod_sub_icon si ON A.sub_icon_id = si.id AND si.is_active_filter = 1 ) AA GROUP BY sub_icon_id [0.00024580955505371 sec]
SELECT c.sub_icon_id AS id, c.count, si.entry, si.name_ua AS name, si.url FROM tmp_counts_sho93sphv1nlinc0uk849ngu8e_6a2ba6a0ef042 c INNER JOIN pod_sub_icon si ON c.sub_icon_id = si.id AND si.is_active_filter = 1 ORDER BY si.ordr, si.name [0.00014495849609375 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_A_sho93sphv1nlinc0uk849ngu8e_6a2ba6a0ef042 [0.00013399124145508 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_counts_sho93sphv1nlinc0uk849ngu8e_6a2ba6a0ef042 [6.3896179199219E-5 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_base_goods; DROP TEMPORARY TABLE IF EXISTS tmp_sub_goods [0.00011706352233887 sec]
Низькі ціни на Дитячі конструктори Magplayer ... Stem (Maгплaиeр ... Стeм) - великий вибір, фото. Купити Дитячі конструктори Magplayer ... Stem (Maгплaиeр ... Стeм) в Києві і Україні

DEVELOPMENT🌷ЗНИЖКИ ДО 70%

ПЕРЕЙТИ

Дитячі конструктори Magplayer ... Stem