SELECT url_to, r404 FROM pod_redirect WHERE BINARY REPLACE(url_from,'/ru/','/') = '/konstruktor_dlya_devochek/o_9-developing-constructor_sets-lego-doka.html' LIMIT 0,1 [0.00063800811767578 sec]
SELECT pod_filter.id,pod_filter.url FROM pod_filter WHERE BINARY pod_filter.url IN ('o_9','developing','constructor_sets','lego','doka') order by url [0.0014069080352783 sec]
SELECT pod_sub_icon.id,pod_sub_icon.url FROM pod_sub_icon WHERE BINARY pod_sub_icon.url IN ('o_9','developing','constructor_sets','lego','doka') order by url [0.00097799301147461 sec]
select id,url from pod_cat_brand where BINARY url IN ('o_9','developing','constructor_sets','lego','doka') [0.0016088485717773 sec]
SELECT id, url FROM pod_filter WHERE url IN ('o_9','developing','constructor_sets','lego','doka') [0.00071096420288086 sec]
SELECT id, url FROM pod_sub_icon WHERE url IN ('o_9','developing','constructor_sets','lego','doka') [0.00063610076904297 sec]
SELECT g.id -- основні FROM pod_cat_good g INNER JOIN pod_good_filter gf0 ON g.id = gf0.id_good AND gf0.filter_id_value in (367) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (463,466) WHERE g.cat_id IN (447) AND g.brand_id IN (349,2568) AND g.is_present AND g.is_present_all_mods AND g.entry =0 AND g.is_active UNION SELECT g.id -- основні в допкатегорії FROM pod_cat_good g INNER JOIN pod_dop_cat_category dc ON dc.good_id = g.id INNER JOIN pod_good_filter gf0 ON g.id = gf0.id_good AND gf0.filter_id_value in (367) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (463,466) WHERE dc.dop_cat_id IN (447) AND g.brand_id IN (349,2568) AND g.is_present AND g.is_present_all_mods AND g.entry =0 AND g.is_active UNION SELECT g.id -- підтовари FROM pod_cat_good go INNER JOIN pod_cat_good g ON go.entry = g.id INNER JOIN pod_good_filter gf0 ON go.id = gf0.id_good AND gf0.filter_id_value in (367) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (463,466) WHERE g.cat_id IN (447) AND g.brand_id IN (349,2568) AND go.is_present AND go.is_active AND g.is_present_all_mods AND g.is_active UNION SELECT g.id -- підтовари в допкатегорії FROM pod_cat_good go INNER JOIN pod_cat_good g ON go.entry = g.id INNER JOIN pod_dop_cat_category dc ON dc.good_id = g.id INNER JOIN pod_good_filter gf0 ON go.id = gf0.id_good AND gf0.filter_id_value in (367) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (463,466) WHERE dc.dop_cat_id IN (447) AND g.brand_id IN (349,2568) AND go.is_present AND go.is_active AND g.is_present_all_mods AND g.is_active [0.066630125045776 sec]
CREATE TEMPORARY TABLE temp_brand_counts_6a2a7c8e2bcd7 ( id INT, gid INT, INDEX idx_id (id), INDEX idx_gid (gid) ) [0.00092911720275879 sec]
INSERT INTO temp_brand_counts_6a2a7c8e2bcd7 (id, gid) SELECT g.brand_id AS id, g.id AS gid -- основні FROM pod_cat_good g INNER JOIN pod_good_filter gf0 ON g.id = gf0.id_good AND gf0.filter_id_value in (367) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (463,466) WHERE g.cat_id IN (447) AND g.is_present AND g.is_present_all_mods AND g.entry =0 AND g.is_active UNION SELECT g.brand_id AS id, g.id AS gid -- основні в допкатегорії FROM pod_cat_good g INNER JOIN pod_dop_cat_category dc ON dc.good_id = g.id INNER JOIN pod_good_filter gf0 ON g.id = gf0.id_good AND gf0.filter_id_value in (367) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (463,466) WHERE dc.dop_cat_id IN (447) AND g.is_present AND g.is_present_all_mods AND g.entry =0 AND g.is_active UNION SELECT g.brand_id AS id, g.id AS gid -- підтовари FROM pod_cat_good go INNER JOIN pod_cat_good g ON go.entry = g.id INNER JOIN pod_good_filter gf0 ON go.id = gf0.id_good AND gf0.filter_id_value in (367) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (463,466) WHERE g.cat_id IN (447) AND go.is_present AND go.is_active AND g.is_present_all_mods AND g.is_active UNION SELECT g.brand_id AS id, g.id AS gid -- підтовари в допкатегорії FROM pod_cat_good go INNER JOIN pod_cat_good g ON go.entry = g.id INNER JOIN pod_dop_cat_category dc ON dc.good_id = g.id INNER JOIN pod_good_filter gf0 ON go.id = gf0.id_good AND gf0.filter_id_value in (367) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (463,466) WHERE dc.dop_cat_id IN (447) AND go.is_present AND go.is_active AND g.is_present_all_mods AND g.is_active UNION SELECT id, null gid FROM pod_cat_category WHERE id in (349,2568) [0.030647039413452 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_6a2a7c8e2bcd7 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.00078201293945312 sec]
DROP TEMPORARY TABLE IF EXISTS temp_brand_counts_6a2a7c8e2bcd7 [0.00021004676818848 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 -- основні FROM pod_cat_good g INNER JOIN pod_good_filter gf0 ON g.id = gf0.id_good AND gf0.filter_id_value in (367) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (463,466) WHERE g.cat_id IN (447) AND g.brand_id IN (349,2568) AND g.is_present AND g.is_present_all_mods AND g.entry =0 AND g.is_active UNION SELECT MIN(g.price) AS min_price, MAX(g.price) AS max_price -- основні в допкатегорії FROM pod_cat_good g INNER JOIN pod_dop_cat_category dc ON dc.good_id = g.id INNER JOIN pod_good_filter gf0 ON g.id = gf0.id_good AND gf0.filter_id_value in (367) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (463,466) WHERE dc.dop_cat_id IN (447) AND g.brand_id IN (349,2568) AND g.is_present AND g.is_present_all_mods AND g.entry =0 AND g.is_active UNION SELECT MIN(go.price) AS min_price, MAX(go.price) AS max_price -- підтовари FROM pod_cat_good go INNER JOIN pod_cat_good g ON go.entry = g.id INNER JOIN pod_good_filter gf0 ON go.id = gf0.id_good AND gf0.filter_id_value in (367) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (463,466) WHERE g.cat_id IN (447) AND g.brand_id IN (349,2568) AND go.is_present AND go.is_active AND g.is_present_all_mods AND g.is_active UNION SELECT MIN(go.price) AS min_price, MAX(go.price) AS max_price -- підтовари в допкатегорії FROM pod_cat_good go INNER JOIN pod_cat_good g ON go.entry = g.id INNER JOIN pod_dop_cat_category dc ON dc.good_id = g.id INNER JOIN pod_good_filter gf0 ON go.id = gf0.id_good AND gf0.filter_id_value in (367) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (463,466) WHERE dc.dop_cat_id IN (447) AND g.brand_id IN (349,2568) AND go.is_present AND go.is_active AND g.is_present_all_mods AND g.is_active ) A [0.0076870918273926 sec]
SELECT name_ua AS name, url FROM pod_cat_brand WHERE id in (349,2568) [0.0004119873046875 sec]
SELECT name_ua AS name, url FROM pod_cat_brand WHERE id='349.2568' [0.00029802322387695 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_A_cp6op7unairpo6lh12067309iu_6a2a7c8e394ee; CREATE TEMPORARY TABLE tmp_A_cp6op7unairpo6lh12067309iu_6a2a7c8e394ee ( id INT NOT NULL, PRIMARY KEY (id) ) ENGINE=MEMORY; [0.0004580020904541 sec]
INSERT INTO tmp_A_cp6op7unairpo6lh12067309iu_6a2a7c8e394ee (id) SELECT A.id FROM ( SELECT g.id -- основні FROM pod_cat_good g INNER JOIN pod_good_filter gf0 ON g.id = gf0.id_good AND gf0.filter_id_value in (367) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (463,466) WHERE g.cat_id IN (447) AND g.brand_id IN (349,2568) AND g.is_present AND g.is_present_all_mods AND g.entry =0 AND g.is_active UNION SELECT g.id -- основні в допкатегорії FROM pod_cat_good g INNER JOIN pod_dop_cat_category dc ON dc.good_id = g.id INNER JOIN pod_good_filter gf0 ON g.id = gf0.id_good AND gf0.filter_id_value in (367) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (463,466) WHERE dc.dop_cat_id IN (447) AND g.brand_id IN (349,2568) AND g.is_present AND g.is_present_all_mods AND g.entry =0 AND g.is_active UNION SELECT g.id -- підтовари FROM pod_cat_good go INNER JOIN pod_cat_good g ON go.entry = g.id INNER JOIN pod_good_filter gf0 ON go.id = gf0.id_good AND gf0.filter_id_value in (367) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (463,466) WHERE g.cat_id IN (447) AND g.brand_id IN (349,2568) AND go.is_present AND go.is_active AND g.is_present_all_mods AND g.is_active UNION SELECT g.id -- підтовари в допкатегорії FROM pod_cat_good go INNER JOIN pod_cat_good g ON go.entry = g.id INNER JOIN pod_dop_cat_category dc ON dc.good_id = g.id INNER JOIN pod_good_filter gf0 ON go.id = gf0.id_good AND gf0.filter_id_value in (367) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (463,466) WHERE dc.dop_cat_id IN (447) AND g.brand_id IN (349,2568) AND go.is_present AND go.is_active AND g.is_present_all_mods AND g.is_active ) A [0.0050020217895508 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_pairs_cp6op7unairpo6lh12067309iu_6a2a7c8e394ee; CREATE TEMPORARY TABLE tmp_pairs_cp6op7unairpo6lh12067309iu_6a2a7c8e394ee ( goods_id INT NOT NULL, filter_id INT NOT NULL, PRIMARY KEY (goods_id, filter_id) ) ENGINE=MEMORY; [0.00045418739318848 sec]
INSERT INTO tmp_pairs_cp6op7unairpo6lh12067309iu_6a2a7c8e394ee (goods_id, filter_id) SELECT DISTINCT A.id AS goods_id, f.id AS filter_id FROM tmp_A_cp6op7unairpo6lh12067309iu_6a2a7c8e394ee A INNER JOIN pod_good_filter gf ON A.id = gf.id_good AND gf.filter_id_value NOT IN (367,463,466) INNER JOIN pod_cat_filter cf ON gf.filter_id = cf.filter_id AND cf.category_id = 447 INNER JOIN pod_filter fm ON gf.filter_id = fm.id AND fm.is_split = 0 AND fm.is_active INNER JOIN pod_filter f ON gf.filter_id_value = f.id AND f.is_active [0.008357048034668 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_counts_cp6op7unairpo6lh12067309iu_6a2a7c8e394ee; CREATE TEMPORARY TABLE tmp_counts_cp6op7unairpo6lh12067309iu_6a2a7c8e394ee ( filter_id INT NOT NULL PRIMARY KEY, count INT NOT NULL ) ENGINE=MEMORY; [0.00043821334838867 sec]
INSERT IGNORE INTO tmp_counts_cp6op7unairpo6lh12067309iu_6a2a7c8e394ee (filter_id, count) SELECT p.filter_id, COUNT(*) AS count FROM tmp_pairs_cp6op7unairpo6lh12067309iu_6a2a7c8e394ee p GROUP BY p.filter_id [0.00039482116699219 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_cp6op7unairpo6lh12067309iu_6a2a7c8e394ee 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.00040817260742188 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_A_cp6op7unairpo6lh12067309iu_6a2a7c8e394ee [0.00029587745666504 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_pairs_cp6op7unairpo6lh12067309iu_6a2a7c8e394ee [0.00013089179992676 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_counts_cp6op7unairpo6lh12067309iu_6a2a7c8e394ee [0.00012302398681641 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_A_cp6op7unairpo6lh12067309iu_6a2a7c8e3d9cb; CREATE TEMPORARY TABLE tmp_A_cp6op7unairpo6lh12067309iu_6a2a7c8e3d9cb ( id INT NOT NULL, entry INT NOT NULL, PRIMARY KEY (id), KEY idx_entry (entry) ) ENGINE=MEMORY; [0.00031709671020508 sec]
INSERT INTO tmp_A_cp6op7unairpo6lh12067309iu_6a2a7c8e3d9cb (id, entry) SELECT A.id, A.entry FROM ( SELECT g.id as id, g.id as entry -- основні FROM pod_cat_good g INNER JOIN pod_good_filter gf0 ON g.id = gf0.id_good AND gf0.filter_id_value in (367) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (463,466) WHERE g.cat_id IN (447) AND g.brand_id IN (349,2568) AND g.is_present AND g.is_present_all_mods AND g.entry =0 AND g.is_active UNION SELECT g.id as id, g.id as entry -- основні в допкатегорії FROM pod_cat_good g INNER JOIN pod_dop_cat_category dc ON dc.good_id = g.id INNER JOIN pod_good_filter gf0 ON g.id = gf0.id_good AND gf0.filter_id_value in (367) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (463,466) WHERE dc.dop_cat_id IN (447) AND g.brand_id IN (349,2568) AND g.is_present AND g.is_present_all_mods AND g.entry =0 AND g.is_active UNION SELECT go.id as id, g.id as entry -- підтовари FROM pod_cat_good go INNER JOIN pod_cat_good g ON go.entry = g.id INNER JOIN pod_good_filter gf0 ON go.id = gf0.id_good AND gf0.filter_id_value in (367) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (463,466) WHERE g.cat_id IN (447) AND g.brand_id IN (349,2568) AND go.is_present AND go.is_active AND g.is_present_all_mods AND g.is_active UNION SELECT go.id as id, g.id as entry -- підтовари в допкатегорії FROM pod_cat_good go INNER JOIN pod_cat_good g ON go.entry = g.id INNER JOIN pod_dop_cat_category dc ON dc.good_id = g.id INNER JOIN pod_good_filter gf0 ON go.id = gf0.id_good AND gf0.filter_id_value in (367) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (463,466) WHERE dc.dop_cat_id IN (447) AND g.brand_id IN (349,2568) AND go.is_present AND go.is_active AND g.is_present_all_mods AND g.is_active ) A [0.017065048217773 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_pairs_cp6op7unairpo6lh12067309iu_6a2a7c8e3d9cb; CREATE TEMPORARY TABLE tmp_pairs_cp6op7unairpo6lh12067309iu_6a2a7c8e3d9cb ( goods_id INT NOT NULL, filter_id INT NOT NULL, PRIMARY KEY (goods_id, filter_id) ) ENGINE=MEMORY; [0.00043678283691406 sec]
INSERT INTO tmp_pairs_cp6op7unairpo6lh12067309iu_6a2a7c8e3d9cb (goods_id, filter_id) SELECT DISTINCT A.entry AS goods_id, f.id AS filter_id FROM tmp_A_cp6op7unairpo6lh12067309iu_6a2a7c8e3d9cb A INNER JOIN pod_good_filter gf ON A.id = gf.id_good AND gf.filter_id_value NOT IN (367,463,466) INNER JOIN pod_cat_filter cf ON gf.filter_id = cf.filter_id AND cf.category_id = 447 INNER JOIN pod_filter fm ON gf.filter_id = fm.id AND fm.is_split = 1 AND fm.is_active INNER JOIN pod_filter f ON gf.filter_id_value = f.id AND f.is_active [0.0008690357208252 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_counts_cp6op7unairpo6lh12067309iu_6a2a7c8e3d9cb; CREATE TEMPORARY TABLE tmp_counts_cp6op7unairpo6lh12067309iu_6a2a7c8e3d9cb ( filter_id INT NOT NULL PRIMARY KEY, count INT NOT NULL ) ENGINE=MEMORY; [0.00023818016052246 sec]
INSERT IGNORE INTO tmp_counts_cp6op7unairpo6lh12067309iu_6a2a7c8e3d9cb (filter_id, count) SELECT p.filter_id, COUNT(*) AS count FROM tmp_pairs_cp6op7unairpo6lh12067309iu_6a2a7c8e3d9cb p GROUP BY p.filter_id [0.0001990795135498 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_cp6op7unairpo6lh12067309iu_6a2a7c8e3d9cb 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.00019097328186035 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_A_cp6op7unairpo6lh12067309iu_6a2a7c8e3d9cb [0.00015997886657715 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_pairs_cp6op7unairpo6lh12067309iu_6a2a7c8e3d9cb [7.2002410888672E-5 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_counts_cp6op7unairpo6lh12067309iu_6a2a7c8e3d9cb [6.9141387939453E-5 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_A_cp6op7unairpo6lh12067309iu_6a2a7c8e42d4d; CREATE TEMPORARY TABLE tmp_A_cp6op7unairpo6lh12067309iu_6a2a7c8e42d4d ( id INT NOT NULL, entry INT NOT NULL, PRIMARY KEY (id), KEY idx_entry (entry) ) ENGINE=MEMORY [0.00016379356384277 sec]
INSERT INTO tmp_A_cp6op7unairpo6lh12067309iu_6a2a7c8e42d4d (id, entry) SELECT A.id, A.entry FROM ( SELECT g.id as id, g.id as entry -- основні FROM pod_cat_good g INNER JOIN pod_good_filter gf0 ON g.id = gf0.id_good AND gf0.filter_id_value in (463,466) WHERE g.cat_id IN (447) AND g.brand_id IN (349,2568) AND g.is_present AND g.is_present_all_mods AND g.entry =0 AND g.is_active UNION SELECT g.id as id, g.id as entry -- основні в допкатегорії FROM pod_cat_good g INNER JOIN pod_dop_cat_category dc ON dc.good_id = g.id INNER JOIN pod_good_filter gf0 ON g.id = gf0.id_good AND gf0.filter_id_value in (463,466) WHERE dc.dop_cat_id IN (447) AND g.brand_id IN (349,2568) AND g.is_present AND g.is_present_all_mods AND g.entry =0 AND g.is_active UNION SELECT go.id as id, g.id as entry -- підтовари FROM pod_cat_good go INNER JOIN pod_cat_good g ON go.entry = g.id INNER JOIN pod_good_filter gf0 ON g.id = gf0.id_good AND gf0.filter_id_value in (463,466) WHERE g.cat_id IN (447) AND g.brand_id IN (349,2568) AND go.is_present AND go.is_active AND g.is_present_all_mods AND g.is_active UNION SELECT go.id as id, g.id as entry -- підтовари в допкатегорії FROM pod_cat_good go INNER JOIN pod_cat_good g ON go.entry = g.id INNER JOIN pod_dop_cat_category dc ON dc.good_id = g.id INNER JOIN pod_good_filter gf0 ON g.id = gf0.id_good AND gf0.filter_id_value in (463,466) WHERE dc.dop_cat_id IN (447) AND g.brand_id IN (349,2568) AND go.is_present AND go.is_active AND g.is_present_all_mods AND g.is_active ) A [0.0023541450500488 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_pairs_cp6op7unairpo6lh12067309iu_6a2a7c8e42d4d; CREATE TEMPORARY TABLE tmp_pairs_cp6op7unairpo6lh12067309iu_6a2a7c8e42d4d ( goods_id INT NOT NULL, filter_id INT NOT NULL, PRIMARY KEY (goods_id, filter_id) ) ENGINE=MEMORY [0.00040292739868164 sec]
INSERT INTO tmp_pairs_cp6op7unairpo6lh12067309iu_6a2a7c8e42d4d (goods_id, filter_id) SELECT DISTINCT A.entry AS goods_id, f.id AS filter_id FROM tmp_A_cp6op7unairpo6lh12067309iu_6a2a7c8e42d4d A INNER JOIN pod_good_filter gf ON A.id = gf.id_good AND gf.filter_id = 262 INNER JOIN pod_filter fm ON gf.filter_id = fm.id AND fm.is_split = 1 AND fm.is_active INNER JOIN pod_filter f ON gf.filter_id_value = f.id AND f.is_active [0.0057659149169922 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_counts_cp6op7unairpo6lh12067309iu_6a2a7c8e42d4d; CREATE TEMPORARY TABLE tmp_counts_cp6op7unairpo6lh12067309iu_6a2a7c8e42d4d ( filter_id INT NOT NULL PRIMARY KEY, count INT NOT NULL ) ENGINE=MEMORY [0.00029087066650391 sec]
INSERT INTO tmp_counts_cp6op7unairpo6lh12067309iu_6a2a7c8e42d4d (filter_id, count) SELECT p.filter_id, COUNT(*) AS count FROM tmp_pairs_cp6op7unairpo6lh12067309iu_6a2a7c8e42d4d p GROUP BY p.filter_id [0.00029492378234863 sec]
INSERT INTO tmp_counts_cp6op7unairpo6lh12067309iu_6a2a7c8e42d4d (filter_id, count) SELECT pf.id, 0 FROM pod_filter pf LEFT JOIN tmp_counts_cp6op7unairpo6lh12067309iu_6a2a7c8e42d4d c ON c.filter_id = pf.id WHERE pf.id in (367) AND c.filter_id IS NULL [0.00024509429931641 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_cp6op7unairpo6lh12067309iu_6a2a7c8e42d4d 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.00042295455932617 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_A_cp6op7unairpo6lh12067309iu_6a2a7c8e42d4d [0.00023412704467773 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_pairs_cp6op7unairpo6lh12067309iu_6a2a7c8e42d4d [9.1075897216797E-5 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_counts_cp6op7unairpo6lh12067309iu_6a2a7c8e42d4d [8.392333984375E-5 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_A_cp6op7unairpo6lh12067309iu_6a2a7c8e4599f; CREATE TEMPORARY TABLE tmp_A_cp6op7unairpo6lh12067309iu_6a2a7c8e4599f ( id INT NOT NULL, PRIMARY KEY (id) ) ENGINE=MEMORY; [0.00030899047851562 sec]
INSERT INTO tmp_A_cp6op7unairpo6lh12067309iu_6a2a7c8e4599f (id) SELECT A.id FROM ( SELECT g.id -- основні FROM pod_cat_good g INNER JOIN pod_good_filter gf0 ON g.id = gf0.id_good AND gf0.filter_id_value in (367) WHERE g.cat_id IN (447) AND g.brand_id IN (349,2568) AND g.is_present AND g.is_present_all_mods AND g.entry =0 AND g.is_active UNION SELECT g.id -- основні в допкатегорії FROM pod_cat_good g INNER JOIN pod_dop_cat_category dc ON dc.good_id = g.id INNER JOIN pod_good_filter gf0 ON g.id = gf0.id_good AND gf0.filter_id_value in (367) WHERE dc.dop_cat_id IN (447) AND g.brand_id IN (349,2568) AND g.is_present AND g.is_present_all_mods AND g.entry =0 AND g.is_active UNION SELECT g.id -- підтовари FROM pod_cat_good go INNER JOIN pod_cat_good g ON go.entry = g.id INNER JOIN pod_good_filter gf0 ON go.id = gf0.id_good AND gf0.filter_id_value in (367) WHERE g.cat_id IN (447) AND g.brand_id IN (349,2568) AND go.is_present AND go.is_active AND g.is_present_all_mods AND g.is_active UNION SELECT g.id -- підтовари в допкатегорії FROM pod_cat_good go INNER JOIN pod_cat_good g ON go.entry = g.id INNER JOIN pod_dop_cat_category dc ON dc.good_id = g.id INNER JOIN pod_good_filter gf0 ON go.id = gf0.id_good AND gf0.filter_id_value in (367) WHERE dc.dop_cat_id IN (447) AND g.brand_id IN (349,2568) AND go.is_present AND go.is_active AND g.is_present_all_mods AND g.is_active ) A [0.013152837753296 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_pairs_cp6op7unairpo6lh12067309iu_6a2a7c8e4599f; CREATE TEMPORARY TABLE tmp_pairs_cp6op7unairpo6lh12067309iu_6a2a7c8e4599f ( goods_id INT NOT NULL, filter_id INT NOT NULL, PRIMARY KEY (goods_id, filter_id) ) ENGINE=MEMORY; [0.00033092498779297 sec]
INSERT INTO tmp_pairs_cp6op7unairpo6lh12067309iu_6a2a7c8e4599f (goods_id, filter_id) SELECT DISTINCT A.id AS goods_id, f.id AS filter_id FROM tmp_A_cp6op7unairpo6lh12067309iu_6a2a7c8e4599f A INNER JOIN pod_good_filter gf ON A.id = gf.id_good AND gf.filter_id = 461 INNER JOIN pod_filter fm ON gf.filter_id = fm.id AND fm.is_split = 0 AND fm.is_active INNER JOIN pod_filter f ON gf.filter_id_value = f.id AND f.is_active [0.003464937210083 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_counts_cp6op7unairpo6lh12067309iu_6a2a7c8e4599f; CREATE TEMPORARY TABLE tmp_counts_cp6op7unairpo6lh12067309iu_6a2a7c8e4599f ( filter_id INT NOT NULL PRIMARY KEY, count INT NOT NULL ) ENGINE=MEMORY; [0.00028705596923828 sec]
INSERT INTO tmp_counts_cp6op7unairpo6lh12067309iu_6a2a7c8e4599f (filter_id, count) SELECT p.filter_id, COUNT(*) AS count FROM tmp_pairs_cp6op7unairpo6lh12067309iu_6a2a7c8e4599f p GROUP BY p.filter_id [0.0002739429473877 sec]
INSERT IGNORE INTO tmp_counts_cp6op7unairpo6lh12067309iu_6a2a7c8e4599f (filter_id, count) SELECT pf.id, 0 FROM pod_filter pf LEFT JOIN tmp_counts_cp6op7unairpo6lh12067309iu_6a2a7c8e4599f c ON c.filter_id = pf.id WHERE pf.id in (463,466) AND c.filter_id IS NULL [0.00029611587524414 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_cp6op7unairpo6lh12067309iu_6a2a7c8e4599f 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.00039100646972656 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_A_cp6op7unairpo6lh12067309iu_6a2a7c8e4599f [0.00020313262939453 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_pairs_cp6op7unairpo6lh12067309iu_6a2a7c8e4599f [9.7036361694336E-5 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_counts_cp6op7unairpo6lh12067309iu_6a2a7c8e4599f [8.8214874267578E-5 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_A_cp6op7unairpo6lh12067309iu_6a2a7c8e4a663; CREATE TEMPORARY TABLE tmp_A_cp6op7unairpo6lh12067309iu_6a2a7c8e4a663 ( entry INT NOT NULL, sub_icon_id INT NOT NULL, PRIMARY KEY (entry, sub_icon_id) ) ENGINE=MEMORY; [0.00019216537475586 sec]
INSERT IGNORE INTO tmp_A_cp6op7unairpo6lh12067309iu_6a2a7c8e4a663 (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 -- основні FROM pod_cat_good g INNER JOIN pod_good_filter gf0 ON g.id = gf0.id_good AND gf0.filter_id_value in (367) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (463,466) WHERE g.cat_id IN (447) AND g.brand_id IN (349,2568) AND g.is_present AND g.is_present_all_mods AND g.entry =0 AND g.is_active UNION SELECT g.id as id, g.id as entry, g.sub_icon_id -- основні в допкатегорії FROM pod_cat_good g INNER JOIN pod_dop_cat_category dc ON dc.good_id = g.id INNER JOIN pod_good_filter gf0 ON g.id = gf0.id_good AND gf0.filter_id_value in (367) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (463,466) WHERE dc.dop_cat_id IN (447) AND g.brand_id IN (349,2568) AND g.is_present AND g.is_present_all_mods AND g.entry =0 AND g.is_active UNION SELECT go.id as id, g.id as entry, go.sub_icon_id -- підтовари FROM pod_cat_good go INNER JOIN pod_cat_good g ON go.entry = g.id INNER JOIN pod_good_filter gf0 ON go.id = gf0.id_good AND gf0.filter_id_value in (367) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (463,466) WHERE g.cat_id IN (447) AND g.brand_id IN (349,2568) AND go.is_present AND go.is_active AND g.is_present_all_mods AND g.is_active UNION SELECT go.id as id, g.id as entry, go.sub_icon_id -- підтовари в допкатегорії FROM pod_cat_good go INNER JOIN pod_cat_good g ON go.entry = g.id INNER JOIN pod_dop_cat_category dc ON dc.good_id = g.id INNER JOIN pod_good_filter gf0 ON go.id = gf0.id_good AND gf0.filter_id_value in (367) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (463,466) WHERE dc.dop_cat_id IN (447) AND g.brand_id IN (349,2568) AND go.is_present AND go.is_active AND g.is_present_all_mods AND g.is_active ) A [0.004331111907959 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_counts_cp6op7unairpo6lh12067309iu_6a2a7c8e4a663; CREATE TEMPORARY TABLE tmp_counts_cp6op7unairpo6lh12067309iu_6a2a7c8e4a663 ( sub_icon_id INT NOT NULL PRIMARY KEY, count INT NOT NULL ) ENGINE=MEMORY; [0.00029206275939941 sec]
INSERT IGNORE INTO tmp_counts_cp6op7unairpo6lh12067309iu_6a2a7c8e4a663 (sub_icon_id, count) SELECT sub_icon_id, COUNT(DISTINCT entry) AS count FROM ( SELECT A.entry, A.sub_icon_id FROM tmp_A_cp6op7unairpo6lh12067309iu_6a2a7c8e4a663 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.00040221214294434 sec]
SELECT c.sub_icon_id AS id, c.count, si.entry, si.name_ua AS name, si.url FROM tmp_counts_cp6op7unairpo6lh12067309iu_6a2a7c8e4a663 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.00025415420532227 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_A_cp6op7unairpo6lh12067309iu_6a2a7c8e4a663 [0.00016593933105469 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_counts_cp6op7unairpo6lh12067309iu_6a2a7c8e4a663 [0.00012516975402832 sec]
Низькі ціни на Конструктор для дівчаток LEGO ... DOKA (ЛEГO ... ДOKA) - великий вибір, фото. Купити Конструктор для дівчаток LEGO ... DOKA (ЛEГO ... ДOKA) в Києві і Україні

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

ПЕРЕЙТИ

Конструктор для дівчаток LEGO ... DOKA