SELECT url_to, r404 FROM pod_redirect WHERE BINARY REPLACE(url_from,'/ru/','/') = '/konstruktory_kits/o_11-electronic-developing-xtrem_bots-stem.html' LIMIT 0,1 [0.00057220458984375 sec]
SELECT pod_filter.id,pod_filter.url FROM pod_filter WHERE BINARY pod_filter.url IN ('o_11','electronic','developing','xtrem_bots','stem') order by url [0.0016789436340332 sec]
SELECT pod_sub_icon.id,pod_sub_icon.url FROM pod_sub_icon WHERE BINARY pod_sub_icon.url IN ('o_11','electronic','developing','xtrem_bots','stem') order by url [0.0012140274047852 sec]
select id,url from pod_cat_brand where BINARY url IN ('o_11','electronic','developing','xtrem_bots','stem') [0.0019598007202148 sec]
SELECT id, url FROM pod_filter WHERE url IN ('o_11','electronic','developing','xtrem_bots','stem') [0.00084614753723145 sec]
SELECT id, url FROM pod_sub_icon WHERE url IN ('o_11','electronic','developing','xtrem_bots','stem') [0.00082898139953613 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 (463,462,372) and f.is_active AND mf.is_active ORDER BY mf.id, f.id [0.00044798851013184 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 (372) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (462,463) WHERE g.cat_id IN (3297,437,447,446) AND g.brand_id IN (2460,2615) 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 (372) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (462,463) WHERE dc.dop_cat_id IN (3297,437,447,446) AND g.brand_id IN (2460,2615) 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 (372) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (462,463) WHERE g.cat_id IN (3297,437,447,446) AND g.brand_id IN (2460,2615) 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 (372) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (462,463) WHERE dc.dop_cat_id IN (3297,437,447,446) AND g.brand_id IN (2460,2615) AND go.is_present AND go.is_active AND g.is_present_all_mods AND g.is_active [0.0068309307098389 sec]
CREATE TEMPORARY TABLE temp_brand_counts_6a2aa09453eb4 ( id INT, gid INT, INDEX idx_id (id), INDEX idx_gid (gid) ) [0.00037002563476562 sec]
INSERT INTO temp_brand_counts_6a2aa09453eb4 (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 (372) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (462,463) 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 (372) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (462,463) 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 (372) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (462,463) 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 (372) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (462,463) 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,2615) [0.011465072631836 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_6a2aa09453eb4 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.00081896781921387 sec]
DROP TEMPORARY TABLE IF EXISTS temp_brand_counts_6a2aa09453eb4 [0.00022006034851074 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 (372) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (462,463) WHERE g.cat_id IN (3297,437,447,446) AND g.brand_id IN (2460,2615) 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 (372) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (462,463) WHERE dc.dop_cat_id IN (3297,437,447,446) AND g.brand_id IN (2460,2615) 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 (372) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (462,463) WHERE g.cat_id IN (3297,437,447,446) AND g.brand_id IN (2460,2615) 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 (372) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (462,463) WHERE dc.dop_cat_id IN (3297,437,447,446) AND g.brand_id IN (2460,2615) AND go.is_present AND go.is_active AND g.is_present_all_mods AND g.is_active ) A [0.003140926361084 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 (372) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (462,463) WHERE g.cat_id IN (3297,437,447,446) AND g.brand_id IN (2460,2615) 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 (372) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (462,463) WHERE dc.dop_cat_id IN (3297,437,447,446) AND g.brand_id IN (2460,2615) 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 (372) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (462,463) WHERE g.cat_id IN (3297,437,447,446) AND g.brand_id IN (2460,2615) 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 (372) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (462,463) WHERE dc.dop_cat_id IN (3297,437,447,446) AND g.brand_id IN (2460,2615) 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.0032520294189453 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_A_ub61pj1seu2b9h04ueqs0rucob_6a2aa0945b65a; CREATE TEMPORARY TABLE tmp_A_ub61pj1seu2b9h04ueqs0rucob_6a2aa0945b65a ( id INT NOT NULL, PRIMARY KEY (id) ) ENGINE=MEMORY; [0.0004889965057373 sec]
INSERT INTO tmp_A_ub61pj1seu2b9h04ueqs0rucob_6a2aa0945b65a (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 (372) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (462,463) WHERE g.cat_id IN (3297,437,447,446) AND g.brand_id IN (2460,2615) 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 (372) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (462,463) WHERE dc.dop_cat_id IN (3297,437,447,446) AND g.brand_id IN (2460,2615) 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 (372) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (462,463) WHERE g.cat_id IN (3297,437,447,446) AND g.brand_id IN (2460,2615) 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 (372) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (462,463) WHERE dc.dop_cat_id IN (3297,437,447,446) AND g.brand_id IN (2460,2615) AND go.is_present AND go.is_active AND g.is_present_all_mods AND g.is_active ) A [0.0034830570220947 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_pairs_ub61pj1seu2b9h04ueqs0rucob_6a2aa0945b65a; CREATE TEMPORARY TABLE tmp_pairs_ub61pj1seu2b9h04ueqs0rucob_6a2aa0945b65a ( goods_id INT NOT NULL, filter_id INT NOT NULL, PRIMARY KEY (goods_id, filter_id) ) ENGINE=MEMORY; [0.00041985511779785 sec]
INSERT INTO tmp_pairs_ub61pj1seu2b9h04ueqs0rucob_6a2aa0945b65a (goods_id, filter_id) SELECT DISTINCT A.id AS goods_id, f.id AS filter_id FROM tmp_A_ub61pj1seu2b9h04ueqs0rucob_6a2aa0945b65a A INNER JOIN pod_good_filter gf ON A.id = gf.id_good AND gf.filter_id_value NOT IN (372,462,463) 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.0028338432312012 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_counts_ub61pj1seu2b9h04ueqs0rucob_6a2aa0945b65a; CREATE TEMPORARY TABLE tmp_counts_ub61pj1seu2b9h04ueqs0rucob_6a2aa0945b65a ( filter_id INT NOT NULL PRIMARY KEY, count INT NOT NULL ) ENGINE=MEMORY; [0.00043487548828125 sec]
INSERT IGNORE INTO tmp_counts_ub61pj1seu2b9h04ueqs0rucob_6a2aa0945b65a (filter_id, count) SELECT p.filter_id, COUNT(*) AS count FROM tmp_pairs_ub61pj1seu2b9h04ueqs0rucob_6a2aa0945b65a p GROUP BY p.filter_id [0.00034117698669434 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_6a2aa0945b65a 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.00030303001403809 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_A_ub61pj1seu2b9h04ueqs0rucob_6a2aa0945b65a [0.00031495094299316 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_pairs_ub61pj1seu2b9h04ueqs0rucob_6a2aa0945b65a [0.0001680850982666 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_counts_ub61pj1seu2b9h04ueqs0rucob_6a2aa0945b65a [0.00020003318786621 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_A_ub61pj1seu2b9h04ueqs0rucob_6a2aa0945dec6; CREATE TEMPORARY TABLE tmp_A_ub61pj1seu2b9h04ueqs0rucob_6a2aa0945dec6 ( id INT NOT NULL, entry INT NOT NULL, PRIMARY KEY (id), KEY idx_entry (entry) ) ENGINE=MEMORY; [0.00034403800964355 sec]
INSERT INTO tmp_A_ub61pj1seu2b9h04ueqs0rucob_6a2aa0945dec6 (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 (372) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (462,463) WHERE g.cat_id IN (3297,437,447,446) AND g.brand_id IN (2460,2615) 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 (372) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (462,463) WHERE dc.dop_cat_id IN (3297,437,447,446) AND g.brand_id IN (2460,2615) 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 (372) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (462,463) WHERE g.cat_id IN (3297,437,447,446) AND g.brand_id IN (2460,2615) 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 (372) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (462,463) WHERE dc.dop_cat_id IN (3297,437,447,446) AND g.brand_id IN (2460,2615) AND go.is_present AND go.is_active AND g.is_present_all_mods AND g.is_active ) A [0.0040688514709473 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_pairs_ub61pj1seu2b9h04ueqs0rucob_6a2aa0945dec6; CREATE TEMPORARY TABLE tmp_pairs_ub61pj1seu2b9h04ueqs0rucob_6a2aa0945dec6 ( goods_id INT NOT NULL, filter_id INT NOT NULL, PRIMARY KEY (goods_id, filter_id) ) ENGINE=MEMORY; [0.00048184394836426 sec]
INSERT INTO tmp_pairs_ub61pj1seu2b9h04ueqs0rucob_6a2aa0945dec6 (goods_id, filter_id) SELECT DISTINCT A.entry AS goods_id, f.id AS filter_id FROM tmp_A_ub61pj1seu2b9h04ueqs0rucob_6a2aa0945dec6 A INNER JOIN pod_good_filter gf ON A.id = gf.id_good AND gf.filter_id_value NOT IN (372,462,463) 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.0007779598236084 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_counts_ub61pj1seu2b9h04ueqs0rucob_6a2aa0945dec6; CREATE TEMPORARY TABLE tmp_counts_ub61pj1seu2b9h04ueqs0rucob_6a2aa0945dec6 ( filter_id INT NOT NULL PRIMARY KEY, count INT NOT NULL ) ENGINE=MEMORY; [0.00049996376037598 sec]
INSERT IGNORE INTO tmp_counts_ub61pj1seu2b9h04ueqs0rucob_6a2aa0945dec6 (filter_id, count) SELECT p.filter_id, COUNT(*) AS count FROM tmp_pairs_ub61pj1seu2b9h04ueqs0rucob_6a2aa0945dec6 p GROUP BY p.filter_id [0.0003960132598877 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_6a2aa0945dec6 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.00050997734069824 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_A_ub61pj1seu2b9h04ueqs0rucob_6a2aa0945dec6 [0.00031709671020508 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_pairs_ub61pj1seu2b9h04ueqs0rucob_6a2aa0945dec6 [0.00016307830810547 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_counts_ub61pj1seu2b9h04ueqs0rucob_6a2aa0945dec6 [0.0001521110534668 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_A_ub61pj1seu2b9h04ueqs0rucob_6a2aa09460524; CREATE TEMPORARY TABLE tmp_A_ub61pj1seu2b9h04ueqs0rucob_6a2aa09460524 ( id INT NOT NULL, entry INT NOT NULL, PRIMARY KEY (id), KEY idx_entry (entry) ) ENGINE=MEMORY [0.00035500526428223 sec]
INSERT INTO tmp_A_ub61pj1seu2b9h04ueqs0rucob_6a2aa09460524 (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) WHERE g.cat_id IN (3297,437,447,446) AND g.brand_id IN (2460,2615) 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) WHERE dc.dop_cat_id IN (3297,437,447,446) AND g.brand_id IN (2460,2615) 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) WHERE g.cat_id IN (3297,437,447,446) AND g.brand_id IN (2460,2615) 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) WHERE dc.dop_cat_id IN (3297,437,447,446) AND g.brand_id IN (2460,2615) AND go.is_present AND go.is_active AND g.is_present_all_mods AND g.is_active ) A [0.0027198791503906 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_pairs_ub61pj1seu2b9h04ueqs0rucob_6a2aa09460524; CREATE TEMPORARY TABLE tmp_pairs_ub61pj1seu2b9h04ueqs0rucob_6a2aa09460524 ( goods_id INT NOT NULL, filter_id INT NOT NULL, PRIMARY KEY (goods_id, filter_id) ) ENGINE=MEMORY [0.00042510032653809 sec]
INSERT INTO tmp_pairs_ub61pj1seu2b9h04ueqs0rucob_6a2aa09460524 (goods_id, filter_id) SELECT DISTINCT A.entry AS goods_id, f.id AS filter_id FROM tmp_A_ub61pj1seu2b9h04ueqs0rucob_6a2aa09460524 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.00085592269897461 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_counts_ub61pj1seu2b9h04ueqs0rucob_6a2aa09460524; CREATE TEMPORARY TABLE tmp_counts_ub61pj1seu2b9h04ueqs0rucob_6a2aa09460524 ( filter_id INT NOT NULL PRIMARY KEY, count INT NOT NULL ) ENGINE=MEMORY [0.0003819465637207 sec]
INSERT INTO tmp_counts_ub61pj1seu2b9h04ueqs0rucob_6a2aa09460524 (filter_id, count) SELECT p.filter_id, COUNT(*) AS count FROM tmp_pairs_ub61pj1seu2b9h04ueqs0rucob_6a2aa09460524 p GROUP BY p.filter_id [0.00038790702819824 sec]
INSERT INTO tmp_counts_ub61pj1seu2b9h04ueqs0rucob_6a2aa09460524 (filter_id, count) SELECT pf.id, 0 FROM pod_filter pf LEFT JOIN tmp_counts_ub61pj1seu2b9h04ueqs0rucob_6a2aa09460524 c ON c.filter_id = pf.id WHERE pf.id in (372) AND c.filter_id IS NULL [0.00026392936706543 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_6a2aa09460524 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.00043702125549316 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_A_ub61pj1seu2b9h04ueqs0rucob_6a2aa09460524 [0.00030303001403809 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_pairs_ub61pj1seu2b9h04ueqs0rucob_6a2aa09460524 [0.00013208389282227 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_counts_ub61pj1seu2b9h04ueqs0rucob_6a2aa09460524 [0.00011181831359863 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_A_ub61pj1seu2b9h04ueqs0rucob_6a2aa094626c8; CREATE TEMPORARY TABLE tmp_A_ub61pj1seu2b9h04ueqs0rucob_6a2aa094626c8 ( id INT NOT NULL, PRIMARY KEY (id) ) ENGINE=MEMORY; [0.00024700164794922 sec]
INSERT INTO tmp_A_ub61pj1seu2b9h04ueqs0rucob_6a2aa094626c8 (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 (372) WHERE g.cat_id IN (3297,437,447,446) AND g.brand_id IN (2460,2615) 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 (372) WHERE dc.dop_cat_id IN (3297,437,447,446) AND g.brand_id IN (2460,2615) 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 (372) WHERE g.cat_id IN (3297,437,447,446) AND g.brand_id IN (2460,2615) 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 (372) WHERE dc.dop_cat_id IN (3297,437,447,446) AND g.brand_id IN (2460,2615) AND go.is_present AND go.is_active AND g.is_present_all_mods AND g.is_active ) A [0.0023059844970703 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_pairs_ub61pj1seu2b9h04ueqs0rucob_6a2aa094626c8; CREATE TEMPORARY TABLE tmp_pairs_ub61pj1seu2b9h04ueqs0rucob_6a2aa094626c8 ( goods_id INT NOT NULL, filter_id INT NOT NULL, PRIMARY KEY (goods_id, filter_id) ) ENGINE=MEMORY; [0.00033116340637207 sec]
INSERT INTO tmp_pairs_ub61pj1seu2b9h04ueqs0rucob_6a2aa094626c8 (goods_id, filter_id) SELECT DISTINCT A.id AS goods_id, f.id AS filter_id FROM tmp_A_ub61pj1seu2b9h04ueqs0rucob_6a2aa094626c8 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.00064396858215332 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_counts_ub61pj1seu2b9h04ueqs0rucob_6a2aa094626c8; CREATE TEMPORARY TABLE tmp_counts_ub61pj1seu2b9h04ueqs0rucob_6a2aa094626c8 ( filter_id INT NOT NULL PRIMARY KEY, count INT NOT NULL ) ENGINE=MEMORY; [0.00030899047851562 sec]
INSERT INTO tmp_counts_ub61pj1seu2b9h04ueqs0rucob_6a2aa094626c8 (filter_id, count) SELECT p.filter_id, COUNT(*) AS count FROM tmp_pairs_ub61pj1seu2b9h04ueqs0rucob_6a2aa094626c8 p GROUP BY p.filter_id [0.00028204917907715 sec]
INSERT IGNORE INTO tmp_counts_ub61pj1seu2b9h04ueqs0rucob_6a2aa094626c8 (filter_id, count) SELECT pf.id, 0 FROM pod_filter pf LEFT JOIN tmp_counts_ub61pj1seu2b9h04ueqs0rucob_6a2aa094626c8 c ON c.filter_id = pf.id WHERE pf.id in (462,463) AND c.filter_id IS NULL [0.00033783912658691 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_6a2aa094626c8 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.00043606758117676 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_A_ub61pj1seu2b9h04ueqs0rucob_6a2aa094626c8 [0.00041794776916504 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_pairs_ub61pj1seu2b9h04ueqs0rucob_6a2aa094626c8 [0.00036501884460449 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_counts_ub61pj1seu2b9h04ueqs0rucob_6a2aa094626c8 [0.00028300285339355 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_A_ub61pj1seu2b9h04ueqs0rucob_6a2aa09464429; CREATE TEMPORARY TABLE tmp_A_ub61pj1seu2b9h04ueqs0rucob_6a2aa09464429 ( entry INT NOT NULL, sub_icon_id INT NOT NULL, PRIMARY KEY (entry, sub_icon_id) ) ENGINE=MEMORY; [0.00028681755065918 sec]
INSERT IGNORE INTO tmp_A_ub61pj1seu2b9h04ueqs0rucob_6a2aa09464429 (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 (372) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (462,463) WHERE g.cat_id IN (3297,437,447,446) AND g.brand_id IN (2460,2615) 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 (372) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (462,463) WHERE dc.dop_cat_id IN (3297,437,447,446) AND g.brand_id IN (2460,2615) 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 (372) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (462,463) WHERE g.cat_id IN (3297,437,447,446) AND g.brand_id IN (2460,2615) 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 (372) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (462,463) WHERE dc.dop_cat_id IN (3297,437,447,446) AND g.brand_id IN (2460,2615) AND go.is_present AND go.is_active AND g.is_present_all_mods AND g.is_active ) A [0.0030500888824463 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_counts_ub61pj1seu2b9h04ueqs0rucob_6a2aa09464429; CREATE TEMPORARY TABLE tmp_counts_ub61pj1seu2b9h04ueqs0rucob_6a2aa09464429 ( sub_icon_id INT NOT NULL PRIMARY KEY, count INT NOT NULL ) ENGINE=MEMORY; [0.00050806999206543 sec]
INSERT IGNORE INTO tmp_counts_ub61pj1seu2b9h04ueqs0rucob_6a2aa09464429 (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_6a2aa09464429 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.00046682357788086 sec]
SELECT c.sub_icon_id AS id, c.count, si.entry, si.name_ua AS name, si.url FROM tmp_counts_ub61pj1seu2b9h04ueqs0rucob_6a2aa09464429 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.00035691261291504 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_A_ub61pj1seu2b9h04ueqs0rucob_6a2aa09464429 [0.00029110908508301 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_counts_ub61pj1seu2b9h04ueqs0rucob_6a2aa09464429 [0.00013494491577148 sec]
Низькі ціни на Дитячі конструктори Xtrem Bots ... Stem (КСтрeм Бoц ... Стeм) - великий вибір, фото. Купити Дитячі конструктори Xtrem Bots ... Stem (КСтрeм Бoц ... Стeм) в Києві і Україні

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

ПЕРЕЙТИ

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