SELECT url_to, r404 FROM pod_redirect WHERE BINARY REPLACE(url_from,'/ru/','/') = '/konstruktory_kits/o_8-electronic-developing-constructor_sets-18_let-xtrem_bots.html' LIMIT 0,1 [0.00039291381835938 sec]
SELECT pod_filter.id,pod_filter.url FROM pod_filter WHERE BINARY pod_filter.url IN ('o_8','electronic','developing','constructor_sets','18_let','xtrem_bots') order by url [0.0011160373687744 sec]
SELECT pod_sub_icon.id,pod_sub_icon.url FROM pod_sub_icon WHERE BINARY pod_sub_icon.url IN ('o_8','electronic','developing','constructor_sets','18_let','xtrem_bots') order by url [0.00081014633178711 sec]
select id,url from pod_cat_brand where BINARY url IN ('o_8','electronic','developing','constructor_sets','18_let','xtrem_bots') [0.0013809204101562 sec]
SELECT id, url FROM pod_filter WHERE url IN ('o_8','electronic','developing','constructor_sets','18_let','xtrem_bots') [0.0007479190826416 sec]
SELECT id, url FROM pod_sub_icon WHERE url IN ('o_8','electronic','developing','constructor_sets','18_let','xtrem_bots') [0.00058794021606445 sec]
SELECT f.id, mf.id as mf_id, mf.is_split FROM pod_filter f INNER JOIN pod_filter mf ON f.entry = mf.id WHERE f.id in (3466,466,463,462,366) and f.is_active AND mf.is_active ORDER BY mf.id, f.id [0.00033211708068848 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 (366,3466) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (462,463,466) WHERE g.cat_id IN (3297,437,447,446) AND g.brand_id IN (2460) 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 (366,3466) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (462,463,466) WHERE dc.dop_cat_id IN (3297,437,447,446) AND g.brand_id IN (2460) 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 (366,3466) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (462,463,466) WHERE g.cat_id IN (3297,437,447,446) AND g.brand_id IN (2460) 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 (366,3466) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (462,463,466) WHERE dc.dop_cat_id IN (3297,437,447,446) AND g.brand_id IN (2460) AND go.is_present AND go.is_active AND g.is_present_all_mods AND g.is_active [0.0067670345306396 sec]
CREATE TEMPORARY TABLE temp_brand_counts_6a2aa0907819c ( id INT, gid INT, INDEX idx_id (id), INDEX idx_gid (gid) ) [0.00031614303588867 sec]
INSERT INTO temp_brand_counts_6a2aa0907819c (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 (366,3466) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (462,463,466) WHERE g.cat_id IN (3297,437,447,446) 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 (366,3466) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (462,463,466) WHERE dc.dop_cat_id IN (3297,437,447,446) 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 (366,3466) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (462,463,466) WHERE g.cat_id IN (3297,437,447,446) 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 (366,3466) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (462,463,466) WHERE dc.dop_cat_id IN (3297,437,447,446) 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 (2460) [0.096346855163574 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_6a2aa0907819c 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.00088119506835938 sec]
DROP TEMPORARY TABLE IF EXISTS temp_brand_counts_6a2aa0907819c [0.00023889541625977 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 (366,3466) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (462,463,466) WHERE g.cat_id IN (3297,437,447,446) AND g.brand_id IN (2460) 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 (366,3466) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (462,463,466) WHERE dc.dop_cat_id IN (3297,437,447,446) AND g.brand_id IN (2460) 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 (366,3466) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (462,463,466) WHERE g.cat_id IN (3297,437,447,446) AND g.brand_id IN (2460) 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 (366,3466) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (462,463,466) WHERE dc.dop_cat_id IN (3297,437,447,446) AND g.brand_id IN (2460) AND go.is_present AND go.is_active AND g.is_present_all_mods AND g.is_active ) A [0.0024740695953369 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 -- основні FROM pod_cat_good g INNER JOIN pod_good_filter gf0 ON g.id = gf0.id_good AND gf0.filter_id_value in (366,3466) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (462,463,466) WHERE g.cat_id IN (3297,437,447,446) AND g.brand_id IN (2460) 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 (366,3466) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (462,463,466) WHERE dc.dop_cat_id IN (3297,437,447,446) AND g.brand_id IN (2460) 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 (366,3466) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (462,463,466) WHERE g.cat_id IN (3297,437,447,446) AND g.brand_id IN (2460) 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 (366,3466) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (462,463,466) WHERE dc.dop_cat_id IN (3297,437,447,446) AND g.brand_id IN (2460) AND go.is_present AND go.is_active AND g.is_present_all_mods AND g.is_active ) 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.0033159255981445 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_A_ub61pj1seu2b9h04ueqs0rucob_6a2aa09094bdd; CREATE TEMPORARY TABLE tmp_A_ub61pj1seu2b9h04ueqs0rucob_6a2aa09094bdd ( id INT NOT NULL, PRIMARY KEY (id) ) ENGINE=MEMORY; [0.00046992301940918 sec]
INSERT INTO tmp_A_ub61pj1seu2b9h04ueqs0rucob_6a2aa09094bdd (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 (366,3466) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (462,463,466) WHERE g.cat_id IN (3297,437,447,446) AND g.brand_id IN (2460) 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 (366,3466) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (462,463,466) WHERE dc.dop_cat_id IN (3297,437,447,446) AND g.brand_id IN (2460) 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 (366,3466) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (462,463,466) WHERE g.cat_id IN (3297,437,447,446) AND g.brand_id IN (2460) 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 (366,3466) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (462,463,466) WHERE dc.dop_cat_id IN (3297,437,447,446) AND g.brand_id IN (2460) AND go.is_present AND go.is_active AND g.is_present_all_mods AND g.is_active ) A [0.002424955368042 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_pairs_ub61pj1seu2b9h04ueqs0rucob_6a2aa09094bdd; CREATE TEMPORARY TABLE tmp_pairs_ub61pj1seu2b9h04ueqs0rucob_6a2aa09094bdd ( goods_id INT NOT NULL, filter_id INT NOT NULL, PRIMARY KEY (goods_id, filter_id) ) ENGINE=MEMORY; [0.00045919418334961 sec]
INSERT INTO tmp_pairs_ub61pj1seu2b9h04ueqs0rucob_6a2aa09094bdd (goods_id, filter_id) SELECT DISTINCT A.id AS goods_id, f.id AS filter_id FROM tmp_A_ub61pj1seu2b9h04ueqs0rucob_6a2aa09094bdd A INNER JOIN pod_good_filter gf ON A.id = gf.id_good AND gf.filter_id_value NOT IN (366,3466,462,463,466) INNER JOIN pod_cat_filter cf ON gf.filter_id = cf.filter_id AND cf.category_id = 3297 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.0016021728515625 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_counts_ub61pj1seu2b9h04ueqs0rucob_6a2aa09094bdd; CREATE TEMPORARY TABLE tmp_counts_ub61pj1seu2b9h04ueqs0rucob_6a2aa09094bdd ( filter_id INT NOT NULL PRIMARY KEY, count INT NOT NULL ) ENGINE=MEMORY; [0.00040411949157715 sec]
INSERT IGNORE INTO tmp_counts_ub61pj1seu2b9h04ueqs0rucob_6a2aa09094bdd (filter_id, count) SELECT p.filter_id, COUNT(*) AS count FROM tmp_pairs_ub61pj1seu2b9h04ueqs0rucob_6a2aa09094bdd p GROUP BY p.filter_id [0.00032401084899902 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_ub61pj1seu2b9h04ueqs0rucob_6a2aa09094bdd 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.00031304359436035 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_A_ub61pj1seu2b9h04ueqs0rucob_6a2aa09094bdd [0.00040102005004883 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_pairs_ub61pj1seu2b9h04ueqs0rucob_6a2aa09094bdd [0.00011897087097168 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_counts_ub61pj1seu2b9h04ueqs0rucob_6a2aa09094bdd [0.00011587142944336 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_A_ub61pj1seu2b9h04ueqs0rucob_6a2aa09096c65; CREATE TEMPORARY TABLE tmp_A_ub61pj1seu2b9h04ueqs0rucob_6a2aa09096c65 ( id INT NOT NULL, entry INT NOT NULL, PRIMARY KEY (id), KEY idx_entry (entry) ) ENGINE=MEMORY; [0.0002739429473877 sec]
INSERT INTO tmp_A_ub61pj1seu2b9h04ueqs0rucob_6a2aa09096c65 (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 (366,3466) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (462,463,466) WHERE g.cat_id IN (3297,437,447,446) AND g.brand_id IN (2460) 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 (366,3466) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (462,463,466) WHERE dc.dop_cat_id IN (3297,437,447,446) AND g.brand_id IN (2460) 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 (366,3466) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (462,463,466) WHERE g.cat_id IN (3297,437,447,446) AND g.brand_id IN (2460) 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 (366,3466) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (462,463,466) WHERE dc.dop_cat_id IN (3297,437,447,446) AND g.brand_id IN (2460) AND go.is_present AND go.is_active AND g.is_present_all_mods AND g.is_active ) A [0.0023660659790039 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_pairs_ub61pj1seu2b9h04ueqs0rucob_6a2aa09096c65; CREATE TEMPORARY TABLE tmp_pairs_ub61pj1seu2b9h04ueqs0rucob_6a2aa09096c65 ( goods_id INT NOT NULL, filter_id INT NOT NULL, PRIMARY KEY (goods_id, filter_id) ) ENGINE=MEMORY; [0.00043201446533203 sec]
INSERT INTO tmp_pairs_ub61pj1seu2b9h04ueqs0rucob_6a2aa09096c65 (goods_id, filter_id) SELECT DISTINCT A.entry AS goods_id, f.id AS filter_id FROM tmp_A_ub61pj1seu2b9h04ueqs0rucob_6a2aa09096c65 A INNER JOIN pod_good_filter gf ON A.id = gf.id_good AND gf.filter_id_value NOT IN (366,3466,462,463,466) INNER JOIN pod_cat_filter cf ON gf.filter_id = cf.filter_id AND cf.category_id = 3297 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.00065398216247559 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_counts_ub61pj1seu2b9h04ueqs0rucob_6a2aa09096c65; CREATE TEMPORARY TABLE tmp_counts_ub61pj1seu2b9h04ueqs0rucob_6a2aa09096c65 ( filter_id INT NOT NULL PRIMARY KEY, count INT NOT NULL ) ENGINE=MEMORY; [0.00036787986755371 sec]
INSERT IGNORE INTO tmp_counts_ub61pj1seu2b9h04ueqs0rucob_6a2aa09096c65 (filter_id, count) SELECT p.filter_id, COUNT(*) AS count FROM tmp_pairs_ub61pj1seu2b9h04ueqs0rucob_6a2aa09096c65 p GROUP BY p.filter_id [0.00026106834411621 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_ub61pj1seu2b9h04ueqs0rucob_6a2aa09096c65 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.00029993057250977 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_A_ub61pj1seu2b9h04ueqs0rucob_6a2aa09096c65 [0.00029587745666504 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_pairs_ub61pj1seu2b9h04ueqs0rucob_6a2aa09096c65 [0.00011515617370605 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_counts_ub61pj1seu2b9h04ueqs0rucob_6a2aa09096c65 [0.00011992454528809 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_A_ub61pj1seu2b9h04ueqs0rucob_6a2aa090988bb; CREATE TEMPORARY TABLE tmp_A_ub61pj1seu2b9h04ueqs0rucob_6a2aa090988bb ( id INT NOT NULL, entry INT NOT NULL, PRIMARY KEY (id), KEY idx_entry (entry) ) ENGINE=MEMORY [0.00034904479980469 sec]
INSERT INTO tmp_A_ub61pj1seu2b9h04ueqs0rucob_6a2aa090988bb (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 (462,463,466) WHERE g.cat_id IN (3297,437,447,446) AND g.brand_id IN (2460) 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 (462,463,466) WHERE dc.dop_cat_id IN (3297,437,447,446) AND g.brand_id IN (2460) 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 (462,463,466) WHERE g.cat_id IN (3297,437,447,446) AND g.brand_id IN (2460) 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 (462,463,466) WHERE dc.dop_cat_id IN (3297,437,447,446) AND g.brand_id IN (2460) AND go.is_present AND go.is_active AND g.is_present_all_mods AND g.is_active ) A [0.0010209083557129 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_pairs_ub61pj1seu2b9h04ueqs0rucob_6a2aa090988bb; CREATE TEMPORARY TABLE tmp_pairs_ub61pj1seu2b9h04ueqs0rucob_6a2aa090988bb ( goods_id INT NOT NULL, filter_id INT NOT NULL, PRIMARY KEY (goods_id, filter_id) ) ENGINE=MEMORY [0.00021100044250488 sec]
INSERT INTO tmp_pairs_ub61pj1seu2b9h04ueqs0rucob_6a2aa090988bb (goods_id, filter_id) SELECT DISTINCT A.entry AS goods_id, f.id AS filter_id FROM tmp_A_ub61pj1seu2b9h04ueqs0rucob_6a2aa090988bb 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.0018329620361328 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_counts_ub61pj1seu2b9h04ueqs0rucob_6a2aa090988bb; CREATE TEMPORARY TABLE tmp_counts_ub61pj1seu2b9h04ueqs0rucob_6a2aa090988bb ( filter_id INT NOT NULL PRIMARY KEY, count INT NOT NULL ) ENGINE=MEMORY [0.00027704238891602 sec]
INSERT INTO tmp_counts_ub61pj1seu2b9h04ueqs0rucob_6a2aa090988bb (filter_id, count) SELECT p.filter_id, COUNT(*) AS count FROM tmp_pairs_ub61pj1seu2b9h04ueqs0rucob_6a2aa090988bb p GROUP BY p.filter_id [0.0001981258392334 sec]
INSERT INTO tmp_counts_ub61pj1seu2b9h04ueqs0rucob_6a2aa090988bb (filter_id, count) SELECT pf.id, 0 FROM pod_filter pf LEFT JOIN tmp_counts_ub61pj1seu2b9h04ueqs0rucob_6a2aa090988bb c ON c.filter_id = pf.id WHERE pf.id in (366,3466) AND c.filter_id IS NULL [0.00017499923706055 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_ub61pj1seu2b9h04ueqs0rucob_6a2aa090988bb 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.00020098686218262 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_A_ub61pj1seu2b9h04ueqs0rucob_6a2aa090988bb [0.00015902519226074 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_pairs_ub61pj1seu2b9h04ueqs0rucob_6a2aa090988bb [0.00011706352233887 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_counts_ub61pj1seu2b9h04ueqs0rucob_6a2aa090988bb [9.4890594482422E-5 sec]
SELECT f.id, mf.id as mf_id, mf.is_split FROM pod_filter f INNER JOIN pod_filter mf ON f.entry = mf.id WHERE f.id in (3466,366) and f.is_active AND mf.is_active ORDER BY mf.id, f.id [0.00031614303588867 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_A_ub61pj1seu2b9h04ueqs0rucob_6a2aa0909a5a5; CREATE TEMPORARY TABLE tmp_A_ub61pj1seu2b9h04ueqs0rucob_6a2aa0909a5a5 ( id INT NOT NULL, PRIMARY KEY (id) ) ENGINE=MEMORY; [0.0002739429473877 sec]
INSERT INTO tmp_A_ub61pj1seu2b9h04ueqs0rucob_6a2aa0909a5a5 (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 (366,3466) WHERE g.cat_id IN (3297,437,447,446) AND g.brand_id IN (2460) 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 (366,3466) WHERE dc.dop_cat_id IN (3297,437,447,446) AND g.brand_id IN (2460) 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 (366,3466) WHERE g.cat_id IN (3297,437,447,446) AND g.brand_id IN (2460) 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 (366,3466) WHERE dc.dop_cat_id IN (3297,437,447,446) AND g.brand_id IN (2460) AND go.is_present AND go.is_active AND g.is_present_all_mods AND g.is_active ) A [0.0010020732879639 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_pairs_ub61pj1seu2b9h04ueqs0rucob_6a2aa0909a5a5; CREATE TEMPORARY TABLE tmp_pairs_ub61pj1seu2b9h04ueqs0rucob_6a2aa0909a5a5 ( goods_id INT NOT NULL, filter_id INT NOT NULL, PRIMARY KEY (goods_id, filter_id) ) ENGINE=MEMORY; [0.00020503997802734 sec]
INSERT INTO tmp_pairs_ub61pj1seu2b9h04ueqs0rucob_6a2aa0909a5a5 (goods_id, filter_id) SELECT DISTINCT A.id AS goods_id, f.id AS filter_id FROM tmp_A_ub61pj1seu2b9h04ueqs0rucob_6a2aa0909a5a5 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.00081491470336914 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_counts_ub61pj1seu2b9h04ueqs0rucob_6a2aa0909a5a5; CREATE TEMPORARY TABLE tmp_counts_ub61pj1seu2b9h04ueqs0rucob_6a2aa0909a5a5 ( filter_id INT NOT NULL PRIMARY KEY, count INT NOT NULL ) ENGINE=MEMORY; [0.00019693374633789 sec]
INSERT INTO tmp_counts_ub61pj1seu2b9h04ueqs0rucob_6a2aa0909a5a5 (filter_id, count) SELECT p.filter_id, COUNT(*) AS count FROM tmp_pairs_ub61pj1seu2b9h04ueqs0rucob_6a2aa0909a5a5 p GROUP BY p.filter_id [0.00016403198242188 sec]
INSERT IGNORE INTO tmp_counts_ub61pj1seu2b9h04ueqs0rucob_6a2aa0909a5a5 (filter_id, count) SELECT pf.id, 0 FROM pod_filter pf LEFT JOIN tmp_counts_ub61pj1seu2b9h04ueqs0rucob_6a2aa0909a5a5 c ON c.filter_id = pf.id WHERE pf.id in (462,463,466) AND c.filter_id IS NULL [0.00015997886657715 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_ub61pj1seu2b9h04ueqs0rucob_6a2aa0909a5a5 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.00018501281738281 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_A_ub61pj1seu2b9h04ueqs0rucob_6a2aa0909a5a5 [0.00019502639770508 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_pairs_ub61pj1seu2b9h04ueqs0rucob_6a2aa0909a5a5 [0.0001060962677002 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_counts_ub61pj1seu2b9h04ueqs0rucob_6a2aa0909a5a5 [8.392333984375E-5 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_A_ub61pj1seu2b9h04ueqs0rucob_6a2aa0909b925; CREATE TEMPORARY TABLE tmp_A_ub61pj1seu2b9h04ueqs0rucob_6a2aa0909b925 ( entry INT NOT NULL, sub_icon_id INT NOT NULL, PRIMARY KEY (entry, sub_icon_id) ) ENGINE=MEMORY; [0.00037908554077148 sec]
INSERT IGNORE INTO tmp_A_ub61pj1seu2b9h04ueqs0rucob_6a2aa0909b925 (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 (366,3466) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (462,463,466) WHERE g.cat_id IN (3297,437,447,446) AND g.brand_id IN (2460) 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 (366,3466) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (462,463,466) WHERE dc.dop_cat_id IN (3297,437,447,446) AND g.brand_id IN (2460) 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 (366,3466) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (462,463,466) WHERE g.cat_id IN (3297,437,447,446) AND g.brand_id IN (2460) 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 (366,3466) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (462,463,466) WHERE dc.dop_cat_id IN (3297,437,447,446) AND g.brand_id IN (2460) AND go.is_present AND go.is_active AND g.is_present_all_mods AND g.is_active ) A [0.0023529529571533 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_counts_ub61pj1seu2b9h04ueqs0rucob_6a2aa0909b925; CREATE TEMPORARY TABLE tmp_counts_ub61pj1seu2b9h04ueqs0rucob_6a2aa0909b925 ( sub_icon_id INT NOT NULL PRIMARY KEY, count INT NOT NULL ) ENGINE=MEMORY; [0.00039505958557129 sec]
INSERT IGNORE INTO tmp_counts_ub61pj1seu2b9h04ueqs0rucob_6a2aa0909b925 (sub_icon_id, count) SELECT sub_icon_id, COUNT(DISTINCT entry) AS count FROM ( SELECT A.entry, A.sub_icon_id FROM tmp_A_ub61pj1seu2b9h04ueqs0rucob_6a2aa0909b925 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.00049281120300293 sec]
SELECT c.sub_icon_id AS id, c.count, si.entry, si.name_ua AS name, si.url FROM tmp_counts_ub61pj1seu2b9h04ueqs0rucob_6a2aa0909b925 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.00029110908508301 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_A_ub61pj1seu2b9h04ueqs0rucob_6a2aa0909b925 [0.00030708312988281 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_counts_ub61pj1seu2b9h04ueqs0rucob_6a2aa0909b925 [0.0001380443572998 sec]
Низькі ціни на Дитячі конструктори Xtrem Bots (КСтрeм Бoц) - великий вибір, фото. Купити Дитячі конструктори Xtrem Bots (КСтрeм Бoц) в Києві і Україні

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

ПЕРЕЙТИ

Дитячі конструктори Xtrem Bots