SELECT url_to, r404 FROM pod_redirect WHERE BINARY REPLACE(url_from,'/ru/','/') = '/konstruktory_dlya_malchikov/o_13-electronic-developing-constructor_sets-cobi-stem.html' LIMIT 0,1 [0.00026178359985352 sec]
SELECT pod_filter.id,pod_filter.url FROM pod_filter WHERE BINARY pod_filter.url IN ('o_13','electronic','developing','constructor_sets','cobi','stem') order by url [0.00072789192199707 sec]
SELECT pod_sub_icon.id,pod_sub_icon.url FROM pod_sub_icon WHERE BINARY pod_sub_icon.url IN ('o_13','electronic','developing','constructor_sets','cobi','stem') order by url [0.00050497055053711 sec]
select id,url from pod_cat_brand where BINARY url IN ('o_13','electronic','developing','constructor_sets','cobi','stem') [0.00094819068908691 sec]
SELECT id, url FROM pod_filter WHERE url IN ('o_13','electronic','developing','constructor_sets','cobi','stem') [0.0004279613494873 sec]
SELECT id, url FROM pod_sub_icon WHERE url IN ('o_13','electronic','developing','constructor_sets','cobi','stem') [0.00033402442932129 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 (379) 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 (446) AND g.brand_id IN (911,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 (379) 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 (446) AND g.brand_id IN (911,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 (379) 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 (446) AND g.brand_id IN (911,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 (379) 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 (446) AND g.brand_id IN (911,2615) AND go.is_present AND go.is_active AND g.is_present_all_mods AND g.is_active [0.029129028320312 sec]
CREATE TEMPORARY TABLE temp_brand_counts_6a2ab7c691a16 ( id INT, gid INT, INDEX idx_id (id), INDEX idx_gid (gid) ) [0.00061678886413574 sec]
INSERT INTO temp_brand_counts_6a2ab7c691a16 (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 (379) 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 (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 (379) 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 (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 (379) 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 (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 (379) 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 (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 (911,2615) [0.16171312332153 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_6a2ab7c691a16 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.00080990791320801 sec]
DROP TEMPORARY TABLE IF EXISTS temp_brand_counts_6a2ab7c691a16 [0.00019001960754395 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 (379) 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 (446) AND g.brand_id IN (911,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 (379) 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 (446) AND g.brand_id IN (911,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 (379) 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 (446) AND g.brand_id IN (911,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 (379) 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 (446) AND g.brand_id IN (911,2615) AND go.is_present AND go.is_active AND g.is_present_all_mods AND g.is_active ) A [0.0069839954376221 sec]
SELECT g.id, if(g.is_present and g.price >= '731' and g.price <= '4879',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 >= '731' and g.price <= '4879',greatest(g.price,ifnull(max(pcg.price),g.price)),ifnull(max(pcg.price),g.price)) max_sort_price FROM pod_cat_good g LEFT JOIN pod_cat_good pcg ON pcg.entry=g.id and pcg.is_present=1 and pcg.is_present=1 and pcg.price >= '731' and pcg.price <= '4879' WHERE g.id in (453040,478591) GROUP BY g.id ORDER BY g.ordr desc LIMIT 0, 32 [0.0022978782653809 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 >= '731' and g.price <= '4879',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 >= '731' and g.price <= '4879',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 >= '731' and pcg.price <= '4879') WHERE g.id in (453040,478591) GROUP BY g.id ORDER BY g.ordr desc [0.00083494186401367 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 (453040,478591) AND g.is_present = '1' AND g.is_active = '1' ORDER BY g.entry, g.is_present DESC [0.00049114227294922 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 (453040,478591) ORDER BY ggd2.good_id, g.is_present_all_mods DESC [0.00066900253295898 sec]
SELECT name AS name, url FROM pod_cat_brand WHERE id in (911,2615) [0.00030303001403809 sec]
SELECT name AS name, url FROM pod_cat_brand WHERE id='911.2615' [0.00028681755065918 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_A_me67cjunha66asbhutm7ao2u74_6a2ab7c6bf828; CREATE TEMPORARY TABLE tmp_A_me67cjunha66asbhutm7ao2u74_6a2ab7c6bf828 ( id INT NOT NULL, PRIMARY KEY (id) ) ENGINE=MEMORY; [0.00054192543029785 sec]
INSERT INTO tmp_A_me67cjunha66asbhutm7ao2u74_6a2ab7c6bf828 (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 (379) 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 (446) AND g.brand_id IN (911,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 (379) 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 (446) AND g.brand_id IN (911,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 (379) 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 (446) AND g.brand_id IN (911,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 (379) 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 (446) AND g.brand_id IN (911,2615) AND go.is_present AND go.is_active AND g.is_present_all_mods AND g.is_active ) A [0.012310028076172 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_pairs_me67cjunha66asbhutm7ao2u74_6a2ab7c6bf828; CREATE TEMPORARY TABLE tmp_pairs_me67cjunha66asbhutm7ao2u74_6a2ab7c6bf828 ( goods_id INT NOT NULL, filter_id INT NOT NULL, PRIMARY KEY (goods_id, filter_id) ) ENGINE=MEMORY; [0.0004270076751709 sec]
INSERT INTO tmp_pairs_me67cjunha66asbhutm7ao2u74_6a2ab7c6bf828 (goods_id, filter_id) SELECT DISTINCT A.id AS goods_id, f.id AS filter_id FROM tmp_A_me67cjunha66asbhutm7ao2u74_6a2ab7c6bf828 A INNER JOIN pod_good_filter gf ON A.id = gf.id_good AND gf.filter_id_value NOT IN (379,462,463,466) INNER JOIN pod_cat_filter cf ON gf.filter_id = cf.filter_id AND cf.category_id = 446 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.010549068450928 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_counts_me67cjunha66asbhutm7ao2u74_6a2ab7c6bf828; CREATE TEMPORARY TABLE tmp_counts_me67cjunha66asbhutm7ao2u74_6a2ab7c6bf828 ( filter_id INT NOT NULL PRIMARY KEY, count INT NOT NULL ) ENGINE=MEMORY; [0.0005500316619873 sec]
INSERT IGNORE INTO tmp_counts_me67cjunha66asbhutm7ao2u74_6a2ab7c6bf828 (filter_id, count) SELECT p.filter_id, COUNT(*) AS count FROM tmp_pairs_me67cjunha66asbhutm7ao2u74_6a2ab7c6bf828 p GROUP BY p.filter_id [0.00047087669372559 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_me67cjunha66asbhutm7ao2u74_6a2ab7c6bf828 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.0006110668182373 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_A_me67cjunha66asbhutm7ao2u74_6a2ab7c6bf828 [0.00029397010803223 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_pairs_me67cjunha66asbhutm7ao2u74_6a2ab7c6bf828 [0.00024008750915527 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_counts_me67cjunha66asbhutm7ao2u74_6a2ab7c6bf828 [0.00017213821411133 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_A_me67cjunha66asbhutm7ao2u74_6a2ab7c6c62fa; CREATE TEMPORARY TABLE tmp_A_me67cjunha66asbhutm7ao2u74_6a2ab7c6c62fa ( id INT NOT NULL, entry INT NOT NULL, PRIMARY KEY (id), KEY idx_entry (entry) ) ENGINE=MEMORY; [0.00034403800964355 sec]
INSERT INTO tmp_A_me67cjunha66asbhutm7ao2u74_6a2ab7c6c62fa (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 (379) 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 (446) AND g.brand_id IN (911,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 (379) 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 (446) AND g.brand_id IN (911,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 (379) 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 (446) AND g.brand_id IN (911,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 (379) 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 (446) AND g.brand_id IN (911,2615) AND go.is_present AND go.is_active AND g.is_present_all_mods AND g.is_active ) A [0.0050520896911621 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_pairs_me67cjunha66asbhutm7ao2u74_6a2ab7c6c62fa; CREATE TEMPORARY TABLE tmp_pairs_me67cjunha66asbhutm7ao2u74_6a2ab7c6c62fa ( goods_id INT NOT NULL, filter_id INT NOT NULL, PRIMARY KEY (goods_id, filter_id) ) ENGINE=MEMORY; [0.00031781196594238 sec]
INSERT INTO tmp_pairs_me67cjunha66asbhutm7ao2u74_6a2ab7c6c62fa (goods_id, filter_id) SELECT DISTINCT A.entry AS goods_id, f.id AS filter_id FROM tmp_A_me67cjunha66asbhutm7ao2u74_6a2ab7c6c62fa A INNER JOIN pod_good_filter gf ON A.id = gf.id_good AND gf.filter_id_value NOT IN (379,462,463,466) INNER JOIN pod_cat_filter cf ON gf.filter_id = cf.filter_id AND cf.category_id = 446 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.00058722496032715 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_counts_me67cjunha66asbhutm7ao2u74_6a2ab7c6c62fa; CREATE TEMPORARY TABLE tmp_counts_me67cjunha66asbhutm7ao2u74_6a2ab7c6c62fa ( filter_id INT NOT NULL PRIMARY KEY, count INT NOT NULL ) ENGINE=MEMORY; [0.00024604797363281 sec]
INSERT IGNORE INTO tmp_counts_me67cjunha66asbhutm7ao2u74_6a2ab7c6c62fa (filter_id, count) SELECT p.filter_id, COUNT(*) AS count FROM tmp_pairs_me67cjunha66asbhutm7ao2u74_6a2ab7c6c62fa p GROUP BY p.filter_id [0.00024104118347168 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_me67cjunha66asbhutm7ao2u74_6a2ab7c6c62fa 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.00023508071899414 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_A_me67cjunha66asbhutm7ao2u74_6a2ab7c6c62fa [0.00019693374633789 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_pairs_me67cjunha66asbhutm7ao2u74_6a2ab7c6c62fa [9.2029571533203E-5 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_counts_me67cjunha66asbhutm7ao2u74_6a2ab7c6c62fa [9.0122222900391E-5 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_A_me67cjunha66asbhutm7ao2u74_6a2ab7c6c876f; CREATE TEMPORARY TABLE tmp_A_me67cjunha66asbhutm7ao2u74_6a2ab7c6c876f ( id INT NOT NULL, entry INT NOT NULL, PRIMARY KEY (id), KEY idx_entry (entry) ) ENGINE=MEMORY [0.00020408630371094 sec]
INSERT INTO tmp_A_me67cjunha66asbhutm7ao2u74_6a2ab7c6c876f (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 (446) AND g.brand_id IN (911,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,466) WHERE dc.dop_cat_id IN (446) AND g.brand_id IN (911,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,466) WHERE g.cat_id IN (446) AND g.brand_id IN (911,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,466) WHERE dc.dop_cat_id IN (446) AND g.brand_id IN (911,2615) AND go.is_present AND go.is_active AND g.is_present_all_mods AND g.is_active ) A [0.0019650459289551 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_pairs_me67cjunha66asbhutm7ao2u74_6a2ab7c6c876f; CREATE TEMPORARY TABLE tmp_pairs_me67cjunha66asbhutm7ao2u74_6a2ab7c6c876f ( goods_id INT NOT NULL, filter_id INT NOT NULL, PRIMARY KEY (goods_id, filter_id) ) ENGINE=MEMORY [0.00028109550476074 sec]
INSERT INTO tmp_pairs_me67cjunha66asbhutm7ao2u74_6a2ab7c6c876f (goods_id, filter_id) SELECT DISTINCT A.entry AS goods_id, f.id AS filter_id FROM tmp_A_me67cjunha66asbhutm7ao2u74_6a2ab7c6c876f 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.0047409534454346 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_counts_me67cjunha66asbhutm7ao2u74_6a2ab7c6c876f; CREATE TEMPORARY TABLE tmp_counts_me67cjunha66asbhutm7ao2u74_6a2ab7c6c876f ( filter_id INT NOT NULL PRIMARY KEY, count INT NOT NULL ) ENGINE=MEMORY [0.00022006034851074 sec]
INSERT INTO tmp_counts_me67cjunha66asbhutm7ao2u74_6a2ab7c6c876f (filter_id, count) SELECT p.filter_id, COUNT(*) AS count FROM tmp_pairs_me67cjunha66asbhutm7ao2u74_6a2ab7c6c876f p GROUP BY p.filter_id [0.00022602081298828 sec]
INSERT INTO tmp_counts_me67cjunha66asbhutm7ao2u74_6a2ab7c6c876f (filter_id, count) SELECT pf.id, 0 FROM pod_filter pf LEFT JOIN tmp_counts_me67cjunha66asbhutm7ao2u74_6a2ab7c6c876f c ON c.filter_id = pf.id WHERE pf.id in (379) AND c.filter_id IS NULL [0.00027894973754883 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_me67cjunha66asbhutm7ao2u74_6a2ab7c6c876f 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.00040388107299805 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_A_me67cjunha66asbhutm7ao2u74_6a2ab7c6c876f [0.00033283233642578 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_pairs_me67cjunha66asbhutm7ao2u74_6a2ab7c6c876f [0.00014901161193848 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_counts_me67cjunha66asbhutm7ao2u74_6a2ab7c6c876f [0.00011587142944336 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_A_me67cjunha66asbhutm7ao2u74_6a2ab7c6cb22b; CREATE TEMPORARY TABLE tmp_A_me67cjunha66asbhutm7ao2u74_6a2ab7c6cb22b ( id INT NOT NULL, PRIMARY KEY (id) ) ENGINE=MEMORY; [0.00034093856811523 sec]
INSERT INTO tmp_A_me67cjunha66asbhutm7ao2u74_6a2ab7c6cb22b (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 (379) WHERE g.cat_id IN (446) AND g.brand_id IN (911,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 (379) WHERE dc.dop_cat_id IN (446) AND g.brand_id IN (911,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 (379) WHERE g.cat_id IN (446) AND g.brand_id IN (911,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 (379) WHERE dc.dop_cat_id IN (446) AND g.brand_id IN (911,2615) AND go.is_present AND go.is_active AND g.is_present_all_mods AND g.is_active ) A [0.0032789707183838 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_pairs_me67cjunha66asbhutm7ao2u74_6a2ab7c6cb22b; CREATE TEMPORARY TABLE tmp_pairs_me67cjunha66asbhutm7ao2u74_6a2ab7c6cb22b ( goods_id INT NOT NULL, filter_id INT NOT NULL, PRIMARY KEY (goods_id, filter_id) ) ENGINE=MEMORY; [0.00043606758117676 sec]
INSERT INTO tmp_pairs_me67cjunha66asbhutm7ao2u74_6a2ab7c6cb22b (goods_id, filter_id) SELECT DISTINCT A.id AS goods_id, f.id AS filter_id FROM tmp_A_me67cjunha66asbhutm7ao2u74_6a2ab7c6cb22b 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.0045270919799805 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_counts_me67cjunha66asbhutm7ao2u74_6a2ab7c6cb22b; CREATE TEMPORARY TABLE tmp_counts_me67cjunha66asbhutm7ao2u74_6a2ab7c6cb22b ( filter_id INT NOT NULL PRIMARY KEY, count INT NOT NULL ) ENGINE=MEMORY; [0.00039505958557129 sec]
INSERT INTO tmp_counts_me67cjunha66asbhutm7ao2u74_6a2ab7c6cb22b (filter_id, count) SELECT p.filter_id, COUNT(*) AS count FROM tmp_pairs_me67cjunha66asbhutm7ao2u74_6a2ab7c6cb22b p GROUP BY p.filter_id [0.00038790702819824 sec]
INSERT IGNORE INTO tmp_counts_me67cjunha66asbhutm7ao2u74_6a2ab7c6cb22b (filter_id, count) SELECT pf.id, 0 FROM pod_filter pf LEFT JOIN tmp_counts_me67cjunha66asbhutm7ao2u74_6a2ab7c6cb22b c ON c.filter_id = pf.id WHERE pf.id in (462,463,466) AND c.filter_id IS NULL [0.00037097930908203 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_me67cjunha66asbhutm7ao2u74_6a2ab7c6cb22b 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_me67cjunha66asbhutm7ao2u74_6a2ab7c6cb22b [0.00032401084899902 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_pairs_me67cjunha66asbhutm7ao2u74_6a2ab7c6cb22b [0.00013899803161621 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_counts_me67cjunha66asbhutm7ao2u74_6a2ab7c6cb22b [0.00012898445129395 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_A_me67cjunha66asbhutm7ao2u74_6a2ab7c6ce17e; CREATE TEMPORARY TABLE tmp_A_me67cjunha66asbhutm7ao2u74_6a2ab7c6ce17e ( entry INT NOT NULL, sub_icon_id INT NOT NULL, PRIMARY KEY (entry, sub_icon_id) ) ENGINE=MEMORY; [0.00022101402282715 sec]
INSERT IGNORE INTO tmp_A_me67cjunha66asbhutm7ao2u74_6a2ab7c6ce17e (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 (379) 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 (446) AND g.brand_id IN (911,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 (379) 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 (446) AND g.brand_id IN (911,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 (379) 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 (446) AND g.brand_id IN (911,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 (379) 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 (446) AND g.brand_id IN (911,2615) AND go.is_present AND go.is_active AND g.is_present_all_mods AND g.is_active ) A [0.0032200813293457 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_counts_me67cjunha66asbhutm7ao2u74_6a2ab7c6ce17e; CREATE TEMPORARY TABLE tmp_counts_me67cjunha66asbhutm7ao2u74_6a2ab7c6ce17e ( sub_icon_id INT NOT NULL PRIMARY KEY, count INT NOT NULL ) ENGINE=MEMORY; [0.00031399726867676 sec]
INSERT IGNORE INTO tmp_counts_me67cjunha66asbhutm7ao2u74_6a2ab7c6ce17e (sub_icon_id, count) SELECT sub_icon_id, COUNT(DISTINCT entry) AS count FROM ( SELECT A.entry, A.sub_icon_id FROM tmp_A_me67cjunha66asbhutm7ao2u74_6a2ab7c6ce17e 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.00042605400085449 sec]
SELECT c.sub_icon_id AS id, c.count, si.entry, si.name AS name, si.url FROM tmp_counts_me67cjunha66asbhutm7ao2u74_6a2ab7c6ce17e 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.00027799606323242 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_A_me67cjunha66asbhutm7ao2u74_6a2ab7c6ce17e [0.00021100044250488 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_counts_me67cjunha66asbhutm7ao2u74_6a2ab7c6ce17e [0.00012302398681641 sec]
Низкие цены на Конструктор для мальчиков Cobi ... Stem (Кoбі ... Стeм) – большой выбор, фото. Купить Конструктор для мальчиков Cobi ... Stem (Кoбі ... Стeм) в Киеве и Украине

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

ПЕРЕЙТИ

Конструктор для мальчиков Cobi ... Stem