SELECT url_to, r404 FROM pod_redirect WHERE BINARY REPLACE(url_from,'/ru/','/') = '/konstruktory_kits/o_7-o_14-developing-constructor_sets-xtrem_bots-picasso.html' LIMIT 0,1 [0.00028300285339355 sec]
SELECT pod_filter.id,pod_filter.url FROM pod_filter WHERE BINARY pod_filter.url IN ('o_7','o_14','developing','constructor_sets','xtrem_bots','picasso') order by url [0.00070905685424805 sec]
SELECT pod_sub_icon.id,pod_sub_icon.url FROM pod_sub_icon WHERE BINARY pod_sub_icon.url IN ('o_7','o_14','developing','constructor_sets','xtrem_bots','picasso') order by url [0.00049495697021484 sec]
select id,url from pod_cat_brand where BINARY url IN ('o_7','o_14','developing','constructor_sets','xtrem_bots','picasso') [0.00095915794372559 sec]
SELECT id, url FROM pod_filter WHERE url IN ('o_7','o_14','developing','constructor_sets','xtrem_bots','picasso') [0.00042295455932617 sec]
SELECT id, url FROM pod_sub_icon WHERE url IN ('o_7','o_14','developing','constructor_sets','xtrem_bots','picasso') [0.0003199577331543 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 (365,380) 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 (3297,437,447,446) AND g.brand_id IN (2460,2610) 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 (365,380) 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 (3297,437,447,446) AND g.brand_id IN (2460,2610) 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 (365,380) 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 (3297,437,447,446) AND g.brand_id IN (2460,2610) 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 (365,380) 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 (3297,437,447,446) AND g.brand_id IN (2460,2610) AND go.is_present AND go.is_active AND g.is_present_all_mods AND g.is_active [0.023101091384888 sec]
CREATE TEMPORARY TABLE temp_brand_counts_6a2ab98a5634f ( id INT, gid INT, INDEX idx_id (id), INDEX idx_gid (gid) ) [0.00082588195800781 sec]
INSERT INTO temp_brand_counts_6a2ab98a5634f (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 (365,380) 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 (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 (365,380) 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 (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 (365,380) 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 (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 (365,380) 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 (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,2610) [0.24168014526367 sec]
SELECT b.id, b.name AS name, pc.name 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_6a2ab98a5634f 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.00066685676574707 sec]
DROP TEMPORARY TABLE IF EXISTS temp_brand_counts_6a2ab98a5634f [0.00026297569274902 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 (365,380) 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 (3297,437,447,446) AND g.brand_id IN (2460,2610) 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 (365,380) 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 (3297,437,447,446) AND g.brand_id IN (2460,2610) 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 (365,380) 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 (3297,437,447,446) AND g.brand_id IN (2460,2610) 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 (365,380) 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 (3297,437,447,446) AND g.brand_id IN (2460,2610) AND go.is_present AND go.is_active AND g.is_present_all_mods AND g.is_active ) A [0.018326997756958 sec]
SELECT g.video, g.threedvideo, g.is_xit, g.is_action, g.is_sale, g.sub_is_action, g.is_new, g.is_pay_for_video, g.id, g.cat_id, g.name AS name, g.name2 AS name2, g.descr, g.size_table, g.artikul, g.image_small, g.image_big, g.price, g.old_price, g.is_present, g.is_present_all_mods, g.sub_icon_id,g.url,g.ordr, g.last_items, g.fast_delivery, g.free_delivery, g.gift, g.timer, g.action_validity, b.name AS brand_name,b.url as burl,b.id as bid, b.country AS brand_country,c.url as curl, c.name AS cat_name, si.name AS sub_icon_name,si.icon AS sub_icon, g.star, g.comment_id, if(g.is_present and g.price >= '643' and g.price <= '1623',least(g.price,ifnull(min(pcg.price),g.price)),ifnull(min(pcg.price),g.price)) as min_sort_price, if(g.is_present and g.price >= '643' and g.price <= '1623',greatest(g.price,ifnull(max(pcg.price),g.price)),ifnull(max(pcg.price),g.price)) as max_sort_price FROM pod_cat_good g INNER JOIN pod_cat_category c ON c.id=g.cat_id LEFT JOIN pod_cat_brand b ON b.id=g.brand_id LEFT JOIN pod_sub_icon si ON si.id=g.sub_icon_id LEFT JOIN pod_cat_good pcg ON (pcg.entry=g.id and pcg.is_present=1 and pcg.price >= '643' and pcg.price <= '1623') WHERE g.id in (478524,478522,478523) GROUP BY g.id ORDER BY g.ordr desc [0.0026609897613525 sec]
SELECT g.ordr, g.is_xit, g.is_pay_for_video, g.is_action, g.is_sale, g.is_new, g.last_items, g.fast_delivery, g.free_delivery, g.gift, g.timer, g.action_validity, g.id, g.entry, g.name AS name, g.price, g.old_price, g.artikul, g.sub_icon_id, g.is_present, si.name AS sub_icon_name, si.icon AS sub_icon FROM pod_cat_good g LEFT JOIN pod_sub_icon si ON si.id = g.sub_icon_id WHERE g.entry IN (478522,478523,478524) AND g.is_present = '1' AND g.is_active = '1' ORDER BY g.entry, g.is_present DESC [0.00038790702819824 sec]
SELECT DISTINCT ggd2.good_id AS source_good_id, g.id, g.is_present_all_mods, pc.name AS name, g.url, b.url as burl, c.url as curl, g.is_present, pc.code AS color_code, gg.group_type, gg.param_name, gg.param_name_ua, ggd.text_value, ggd.icon_path FROM pod_goods_group_goods ggd2 JOIN pod_goods_group_goods ggd ON ggd2.goods_group_id=ggd.goods_group_id JOIN pod_goods_group gg ON ggd.goods_group_id=gg.id JOIN pod_cat_good g ON g.id=ggd.good_id LEFT JOIN pod_cat_brand b ON g.brand_id=b.id LEFT JOIN pod_cat_category c ON g.cat_id=c.id LEFT JOIN pod_colors pc ON pc.id=ggd.color_id WHERE ggd2.good_id IN (478522,478523,478524) ORDER BY ggd2.good_id, g.is_present_all_mods DESC [0.00055313110351562 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_A_941ncji9ed69qulgtu8pvtsh8u_6a2ab98a98e7a; CREATE TEMPORARY TABLE tmp_A_941ncji9ed69qulgtu8pvtsh8u_6a2ab98a98e7a ( id INT NOT NULL, PRIMARY KEY (id) ) ENGINE=MEMORY; [0.00018501281738281 sec]
INSERT INTO tmp_A_941ncji9ed69qulgtu8pvtsh8u_6a2ab98a98e7a (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 (365,380) 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 (3297,437,447,446) AND g.brand_id IN (2460,2610) 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 (365,380) 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 (3297,437,447,446) AND g.brand_id IN (2460,2610) 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 (365,380) 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 (3297,437,447,446) AND g.brand_id IN (2460,2610) 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 (365,380) 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 (3297,437,447,446) AND g.brand_id IN (2460,2610) AND go.is_present AND go.is_active AND g.is_present_all_mods AND g.is_active ) A [0.0016980171203613 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_pairs_941ncji9ed69qulgtu8pvtsh8u_6a2ab98a98e7a; CREATE TEMPORARY TABLE tmp_pairs_941ncji9ed69qulgtu8pvtsh8u_6a2ab98a98e7a ( goods_id INT NOT NULL, filter_id INT NOT NULL, PRIMARY KEY (goods_id, filter_id) ) ENGINE=MEMORY; [0.00015997886657715 sec]
INSERT INTO tmp_pairs_941ncji9ed69qulgtu8pvtsh8u_6a2ab98a98e7a (goods_id, filter_id) SELECT DISTINCT A.id AS goods_id, f.id AS filter_id FROM tmp_A_941ncji9ed69qulgtu8pvtsh8u_6a2ab98a98e7a A INNER JOIN pod_good_filter gf ON A.id = gf.id_good AND gf.filter_id_value NOT IN (365,380,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.011864185333252 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_counts_941ncji9ed69qulgtu8pvtsh8u_6a2ab98a98e7a; CREATE TEMPORARY TABLE tmp_counts_941ncji9ed69qulgtu8pvtsh8u_6a2ab98a98e7a ( filter_id INT NOT NULL PRIMARY KEY, count INT NOT NULL ) ENGINE=MEMORY; [0.00049614906311035 sec]
INSERT IGNORE INTO tmp_counts_941ncji9ed69qulgtu8pvtsh8u_6a2ab98a98e7a (filter_id, count) SELECT p.filter_id, COUNT(*) AS count FROM tmp_pairs_941ncji9ed69qulgtu8pvtsh8u_6a2ab98a98e7a p GROUP BY p.filter_id [0.00039100646972656 sec]
SELECT c.filter_id, c.count, f.entry, f.name AS name, f.url, f.ord, fm.name AS mname, fm.url AS murl, fm.ord AS mord FROM tmp_counts_941ncji9ed69qulgtu8pvtsh8u_6a2ab98a98e7a 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_941ncji9ed69qulgtu8pvtsh8u_6a2ab98a98e7a [0.00024080276489258 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_pairs_941ncji9ed69qulgtu8pvtsh8u_6a2ab98a98e7a [9.7990036010742E-5 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_counts_941ncji9ed69qulgtu8pvtsh8u_6a2ab98a98e7a [0.00011110305786133 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_A_941ncji9ed69qulgtu8pvtsh8u_6a2ab98a9ceda; CREATE TEMPORARY TABLE tmp_A_941ncji9ed69qulgtu8pvtsh8u_6a2ab98a9ceda ( id INT NOT NULL, entry INT NOT NULL, PRIMARY KEY (id), KEY idx_entry (entry) ) ENGINE=MEMORY; [0.00024795532226562 sec]
INSERT INTO tmp_A_941ncji9ed69qulgtu8pvtsh8u_6a2ab98a9ceda (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 (365,380) 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 (3297,437,447,446) AND g.brand_id IN (2460,2610) 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 (365,380) 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 (3297,437,447,446) AND g.brand_id IN (2460,2610) 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 (365,380) 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 (3297,437,447,446) AND g.brand_id IN (2460,2610) 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 (365,380) 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 (3297,437,447,446) AND g.brand_id IN (2460,2610) AND go.is_present AND go.is_active AND g.is_present_all_mods AND g.is_active ) A [0.0031430721282959 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_pairs_941ncji9ed69qulgtu8pvtsh8u_6a2ab98a9ceda; CREATE TEMPORARY TABLE tmp_pairs_941ncji9ed69qulgtu8pvtsh8u_6a2ab98a9ceda ( goods_id INT NOT NULL, filter_id INT NOT NULL, PRIMARY KEY (goods_id, filter_id) ) ENGINE=MEMORY; [0.00040507316589355 sec]
INSERT INTO tmp_pairs_941ncji9ed69qulgtu8pvtsh8u_6a2ab98a9ceda (goods_id, filter_id) SELECT DISTINCT A.entry AS goods_id, f.id AS filter_id FROM tmp_A_941ncji9ed69qulgtu8pvtsh8u_6a2ab98a9ceda A INNER JOIN pod_good_filter gf ON A.id = gf.id_good AND gf.filter_id_value NOT IN (365,380,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.0009157657623291 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_counts_941ncji9ed69qulgtu8pvtsh8u_6a2ab98a9ceda; CREATE TEMPORARY TABLE tmp_counts_941ncji9ed69qulgtu8pvtsh8u_6a2ab98a9ceda ( filter_id INT NOT NULL PRIMARY KEY, count INT NOT NULL ) ENGINE=MEMORY; [0.00030994415283203 sec]
INSERT IGNORE INTO tmp_counts_941ncji9ed69qulgtu8pvtsh8u_6a2ab98a9ceda (filter_id, count) SELECT p.filter_id, COUNT(*) AS count FROM tmp_pairs_941ncji9ed69qulgtu8pvtsh8u_6a2ab98a9ceda p GROUP BY p.filter_id [0.00032687187194824 sec]
SELECT c.filter_id, c.count, f.entry, f.name AS name, f.url, f.ord, fm.name AS mname, fm.url AS murl, fm.ord AS mord FROM tmp_counts_941ncji9ed69qulgtu8pvtsh8u_6a2ab98a9ceda 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.00039482116699219 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_A_941ncji9ed69qulgtu8pvtsh8u_6a2ab98a9ceda [0.00025796890258789 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_pairs_941ncji9ed69qulgtu8pvtsh8u_6a2ab98a9ceda [0.00012493133544922 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_counts_941ncji9ed69qulgtu8pvtsh8u_6a2ab98a9ceda [0.00015687942504883 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_A_941ncji9ed69qulgtu8pvtsh8u_6a2ab98a9ee34; CREATE TEMPORARY TABLE tmp_A_941ncji9ed69qulgtu8pvtsh8u_6a2ab98a9ee34 ( id INT NOT NULL, entry INT NOT NULL, PRIMARY KEY (id), KEY idx_entry (entry) ) ENGINE=MEMORY [0.00019216537475586 sec]
INSERT INTO tmp_A_941ncji9ed69qulgtu8pvtsh8u_6a2ab98a9ee34 (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 (3297,437,447,446) AND g.brand_id IN (2460,2610) 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 (3297,437,447,446) AND g.brand_id IN (2460,2610) 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 (3297,437,447,446) AND g.brand_id IN (2460,2610) 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 (3297,437,447,446) AND g.brand_id IN (2460,2610) AND go.is_present AND go.is_active AND g.is_present_all_mods AND g.is_active ) A [0.0016660690307617 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_pairs_941ncji9ed69qulgtu8pvtsh8u_6a2ab98a9ee34; CREATE TEMPORARY TABLE tmp_pairs_941ncji9ed69qulgtu8pvtsh8u_6a2ab98a9ee34 ( goods_id INT NOT NULL, filter_id INT NOT NULL, PRIMARY KEY (goods_id, filter_id) ) ENGINE=MEMORY [0.00022482872009277 sec]
INSERT INTO tmp_pairs_941ncji9ed69qulgtu8pvtsh8u_6a2ab98a9ee34 (goods_id, filter_id) SELECT DISTINCT A.entry AS goods_id, f.id AS filter_id FROM tmp_A_941ncji9ed69qulgtu8pvtsh8u_6a2ab98a9ee34 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.0041141510009766 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_counts_941ncji9ed69qulgtu8pvtsh8u_6a2ab98a9ee34; CREATE TEMPORARY TABLE tmp_counts_941ncji9ed69qulgtu8pvtsh8u_6a2ab98a9ee34 ( filter_id INT NOT NULL PRIMARY KEY, count INT NOT NULL ) ENGINE=MEMORY [0.00021100044250488 sec]
INSERT INTO tmp_counts_941ncji9ed69qulgtu8pvtsh8u_6a2ab98a9ee34 (filter_id, count) SELECT p.filter_id, COUNT(*) AS count FROM tmp_pairs_941ncji9ed69qulgtu8pvtsh8u_6a2ab98a9ee34 p GROUP BY p.filter_id [0.00024318695068359 sec]
INSERT INTO tmp_counts_941ncji9ed69qulgtu8pvtsh8u_6a2ab98a9ee34 (filter_id, count) SELECT pf.id, 0 FROM pod_filter pf LEFT JOIN tmp_counts_941ncji9ed69qulgtu8pvtsh8u_6a2ab98a9ee34 c ON c.filter_id = pf.id WHERE pf.id in (365,380) AND c.filter_id IS NULL [0.00019383430480957 sec]
SELECT c.filter_id, c.count, f.entry, f.name AS name, f.url, f.ord, fm.name AS mname, fm.url AS murl, fm.ord AS mord FROM tmp_counts_941ncji9ed69qulgtu8pvtsh8u_6a2ab98a9ee34 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.0001990795135498 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_A_941ncji9ed69qulgtu8pvtsh8u_6a2ab98a9ee34 [0.00015902519226074 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_pairs_941ncji9ed69qulgtu8pvtsh8u_6a2ab98a9ee34 [8.0108642578125E-5 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_counts_941ncji9ed69qulgtu8pvtsh8u_6a2ab98a9ee34 [7.2956085205078E-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 (380,365) and f.is_active AND mf.is_active ORDER BY mf.id, f.id [0.00040698051452637 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_A_941ncji9ed69qulgtu8pvtsh8u_6a2ab98aa1518; CREATE TEMPORARY TABLE tmp_A_941ncji9ed69qulgtu8pvtsh8u_6a2ab98aa1518 ( id INT NOT NULL, PRIMARY KEY (id) ) ENGINE=MEMORY; [0.00026392936706543 sec]
INSERT INTO tmp_A_941ncji9ed69qulgtu8pvtsh8u_6a2ab98aa1518 (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 (365,380) WHERE g.cat_id IN (3297,437,447,446) AND g.brand_id IN (2460,2610) 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 (365,380) WHERE dc.dop_cat_id IN (3297,437,447,446) AND g.brand_id IN (2460,2610) 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 (365,380) WHERE g.cat_id IN (3297,437,447,446) AND g.brand_id IN (2460,2610) 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 (365,380) WHERE dc.dop_cat_id IN (3297,437,447,446) AND g.brand_id IN (2460,2610) AND go.is_present AND go.is_active AND g.is_present_all_mods AND g.is_active ) A [0.002579927444458 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_pairs_941ncji9ed69qulgtu8pvtsh8u_6a2ab98aa1518; CREATE TEMPORARY TABLE tmp_pairs_941ncji9ed69qulgtu8pvtsh8u_6a2ab98aa1518 ( goods_id INT NOT NULL, filter_id INT NOT NULL, PRIMARY KEY (goods_id, filter_id) ) ENGINE=MEMORY; [0.00035214424133301 sec]
INSERT INTO tmp_pairs_941ncji9ed69qulgtu8pvtsh8u_6a2ab98aa1518 (goods_id, filter_id) SELECT DISTINCT A.id AS goods_id, f.id AS filter_id FROM tmp_A_941ncji9ed69qulgtu8pvtsh8u_6a2ab98aa1518 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.0024960041046143 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_counts_941ncji9ed69qulgtu8pvtsh8u_6a2ab98aa1518; CREATE TEMPORARY TABLE tmp_counts_941ncji9ed69qulgtu8pvtsh8u_6a2ab98aa1518 ( filter_id INT NOT NULL PRIMARY KEY, count INT NOT NULL ) ENGINE=MEMORY; [0.00023293495178223 sec]
INSERT INTO tmp_counts_941ncji9ed69qulgtu8pvtsh8u_6a2ab98aa1518 (filter_id, count) SELECT p.filter_id, COUNT(*) AS count FROM tmp_pairs_941ncji9ed69qulgtu8pvtsh8u_6a2ab98aa1518 p GROUP BY p.filter_id [0.00020694732666016 sec]
INSERT IGNORE INTO tmp_counts_941ncji9ed69qulgtu8pvtsh8u_6a2ab98aa1518 (filter_id, count) SELECT pf.id, 0 FROM pod_filter pf LEFT JOIN tmp_counts_941ncji9ed69qulgtu8pvtsh8u_6a2ab98aa1518 c ON c.filter_id = pf.id WHERE pf.id in (463,466) AND c.filter_id IS NULL [0.00020217895507812 sec]
SELECT c.filter_id, c.count, f.entry, f.name AS name, f.url, f.ord, fm.name AS mname, fm.url AS murl, fm.ord AS mord FROM tmp_counts_941ncji9ed69qulgtu8pvtsh8u_6a2ab98aa1518 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.00021791458129883 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_A_941ncji9ed69qulgtu8pvtsh8u_6a2ab98aa1518 [0.00019192695617676 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_pairs_941ncji9ed69qulgtu8pvtsh8u_6a2ab98aa1518 [9.3936920166016E-5 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_counts_941ncji9ed69qulgtu8pvtsh8u_6a2ab98aa1518 [9.2029571533203E-5 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_A_941ncji9ed69qulgtu8pvtsh8u_6a2ab98aa34b3; CREATE TEMPORARY TABLE tmp_A_941ncji9ed69qulgtu8pvtsh8u_6a2ab98aa34b3 ( entry INT NOT NULL, sub_icon_id INT NOT NULL, PRIMARY KEY (entry, sub_icon_id) ) ENGINE=MEMORY; [0.00014400482177734 sec]
INSERT IGNORE INTO tmp_A_941ncji9ed69qulgtu8pvtsh8u_6a2ab98aa34b3 (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 (365,380) 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 (3297,437,447,446) AND g.brand_id IN (2460,2610) 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 (365,380) 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 (3297,437,447,446) AND g.brand_id IN (2460,2610) 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 (365,380) 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 (3297,437,447,446) AND g.brand_id IN (2460,2610) 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 (365,380) 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 (3297,437,447,446) AND g.brand_id IN (2460,2610) AND go.is_present AND go.is_active AND g.is_present_all_mods AND g.is_active ) A [0.0015740394592285 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_counts_941ncji9ed69qulgtu8pvtsh8u_6a2ab98aa34b3; CREATE TEMPORARY TABLE tmp_counts_941ncji9ed69qulgtu8pvtsh8u_6a2ab98aa34b3 ( sub_icon_id INT NOT NULL PRIMARY KEY, count INT NOT NULL ) ENGINE=MEMORY; [0.00019502639770508 sec]
INSERT IGNORE INTO tmp_counts_941ncji9ed69qulgtu8pvtsh8u_6a2ab98aa34b3 (sub_icon_id, count) SELECT sub_icon_id, COUNT(DISTINCT entry) AS count FROM ( SELECT A.entry, A.sub_icon_id FROM tmp_A_941ncji9ed69qulgtu8pvtsh8u_6a2ab98aa34b3 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.0002589225769043 sec]
SELECT c.sub_icon_id AS id, c.count, si.entry, si.name AS name, si.url FROM tmp_counts_941ncji9ed69qulgtu8pvtsh8u_6a2ab98aa34b3 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.00013303756713867 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_A_941ncji9ed69qulgtu8pvtsh8u_6a2ab98aa34b3 [0.00014996528625488 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_counts_941ncji9ed69qulgtu8pvtsh8u_6a2ab98aa34b3 [6.7949295043945E-5 sec]
Низкие цены на Детские конструкторы Xtrem Bots ... Picasso (КСтрeм Бoц ... Пікaссo) – большой выбор, фото. Купить Детские конструкторы Xtrem Bots ... Picasso (КСтрeм Бoц ... Пікaссo) в Киеве и Украине

DEVELOPMENT🌷СКИДКИ ДО 70%

ПЕРЕЙТИ

Детские конструкторы Xtrem Bots ... Picasso