SELECT url_to, r404 FROM pod_redirect WHERE BINARY REPLACE(url_from,'/ru/','/') = '/konstruktor_dlya_devochek/o_4-o_16-developing-picasso.html' LIMIT 0,1 [0.00023603439331055 sec]
SELECT pod_filter.id,pod_filter.url FROM pod_filter WHERE BINARY pod_filter.url IN ('o_4','o_16','developing','picasso') order by url [0.00069594383239746 sec]
SELECT pod_sub_icon.id,pod_sub_icon.url FROM pod_sub_icon WHERE BINARY pod_sub_icon.url IN ('o_4','o_16','developing','picasso') order by url [0.00049209594726562 sec]
select id,url from pod_cat_brand where BINARY url IN ('o_4','o_16','developing','picasso') [0.00091695785522461 sec]
SELECT cb.metaindex, cb.metafollow FROM pod_set_cat_brand cb INNER JOIN pod_cat_category c ON cb.cat_id = c.id WHERE c.url = 'konstruktor_dlya_devochek' AND cb.brand_id = 2610 AND cb.is_active = 1 LIMIT 1 [0.00023388862609863 sec]
SELECT id, url FROM pod_filter WHERE url IN ('o_4','o_16','developing','picasso') [0.00033903121948242 sec]
SELECT id, url FROM pod_sub_icon WHERE url IN ('o_4','o_16','developing','picasso') [0.00025296211242676 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,382,362) and f.is_active AND mf.is_active ORDER BY mf.id, f.id [0.0002138614654541 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 (362,382) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (463) WHERE g.cat_id IN (447) AND g.brand_id IN (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 (362,382) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (463) WHERE dc.dop_cat_id IN (447) AND g.brand_id IN (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 (362,382) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (463) WHERE g.cat_id IN (447) AND g.brand_id IN (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 (362,382) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (463) WHERE dc.dop_cat_id IN (447) AND g.brand_id IN (2610) AND go.is_present AND go.is_active AND g.is_present_all_mods AND g.is_active [0.0091061592102051 sec]
CREATE TEMPORARY TABLE temp_brand_counts_6a2aa2960d50d ( id INT, gid INT, INDEX idx_id (id), INDEX idx_gid (gid) ) [0.00019407272338867 sec]
INSERT INTO temp_brand_counts_6a2aa2960d50d (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 (362,382) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (463) WHERE g.cat_id IN (447) AND g.is_present AND g.is_present_all_mods AND g.entry =0 AND g.is_active UNION SELECT g.brand_id AS id, g.id AS gid -- основні в допкатегорії FROM pod_cat_good g INNER JOIN pod_dop_cat_category dc ON dc.good_id = g.id INNER JOIN pod_good_filter gf0 ON g.id = gf0.id_good AND gf0.filter_id_value in (362,382) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (463) WHERE dc.dop_cat_id IN (447) AND g.is_present AND g.is_present_all_mods AND g.entry =0 AND g.is_active UNION SELECT g.brand_id AS id, g.id AS gid -- підтовари FROM pod_cat_good go INNER JOIN pod_cat_good g ON go.entry = g.id INNER JOIN pod_good_filter gf0 ON go.id = gf0.id_good AND gf0.filter_id_value in (362,382) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (463) WHERE g.cat_id IN (447) AND go.is_present AND go.is_active AND g.is_present_all_mods AND g.is_active UNION SELECT g.brand_id AS id, g.id AS gid -- підтовари в допкатегорії FROM pod_cat_good go INNER JOIN pod_cat_good g ON go.entry = g.id INNER JOIN pod_dop_cat_category dc ON dc.good_id = g.id INNER JOIN pod_good_filter gf0 ON go.id = gf0.id_good AND gf0.filter_id_value in (362,382) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (463) WHERE dc.dop_cat_id IN (447) AND go.is_present AND go.is_active AND g.is_present_all_mods AND g.is_active UNION SELECT id, null gid FROM pod_cat_category WHERE id in (2610) [0.045758962631226 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_6a2aa2960d50d 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.00041580200195312 sec]
DROP TEMPORARY TABLE IF EXISTS temp_brand_counts_6a2aa2960d50d [0.00013899803161621 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 (362,382) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (463) WHERE g.cat_id IN (447) AND g.brand_id IN (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 (362,382) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (463) WHERE dc.dop_cat_id IN (447) AND g.brand_id IN (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 (362,382) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (463) WHERE g.cat_id IN (447) AND g.brand_id IN (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 (362,382) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (463) WHERE dc.dop_cat_id IN (447) AND g.brand_id IN (2610) AND go.is_present AND go.is_active AND g.is_present_all_mods AND g.is_active ) A [0.0010781288146973 sec]
SELECT g.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)) 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)) 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 >= '643' and pcg.price <= '1623' WHERE g.id in (478522,478523,478524) GROUP BY g.id ORDER BY g.ordr desc LIMIT 0, 32 [0.0011720657348633 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 (478522,478523,478524) GROUP BY g.id ORDER BY g.ordr desc [0.00074195861816406 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.00027799606323242 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.00036311149597168 sec]
SELECT name AS name, url FROM pod_cat_brand WHERE id in (2610) [0.00018095970153809 sec]
SELECT cb.id, cb.info AS info, cb.title AS title, cb.metadesc AS metadesc, cb.seo_text AS seo_text, cb.tagH1 AS tagH1, cb.canonical, cb.is_active FROM pod_set_cat_brand cb WHERE cb.cat_id = 447 AND cb.brand_id = 2610 AND cb.is_active = 1 LIMIT 1 [0.00015401840209961 sec]
SELECT name AS name, url FROM pod_cat_brand WHERE id='2610' [0.00021600723266602 sec]
SELECT url FROM pod_cat_brand WHERE id = 2610 [0.0002140998840332 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_A_7872o4ivb3i1kqu0ktfho38ghf_6a2aa2961d5b4; CREATE TEMPORARY TABLE tmp_A_7872o4ivb3i1kqu0ktfho38ghf_6a2aa2961d5b4 ( id INT NOT NULL, PRIMARY KEY (id) ) ENGINE=MEMORY; [0.00034499168395996 sec]
INSERT INTO tmp_A_7872o4ivb3i1kqu0ktfho38ghf_6a2aa2961d5b4 (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 (362,382) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (463) WHERE g.cat_id IN (447) AND g.brand_id IN (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 (362,382) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (463) WHERE dc.dop_cat_id IN (447) AND g.brand_id IN (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 (362,382) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (463) WHERE g.cat_id IN (447) AND g.brand_id IN (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 (362,382) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (463) WHERE dc.dop_cat_id IN (447) AND g.brand_id IN (2610) AND go.is_present AND go.is_active AND g.is_present_all_mods AND g.is_active ) A [0.0014009475708008 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_pairs_7872o4ivb3i1kqu0ktfho38ghf_6a2aa2961d5b4; CREATE TEMPORARY TABLE tmp_pairs_7872o4ivb3i1kqu0ktfho38ghf_6a2aa2961d5b4 ( goods_id INT NOT NULL, filter_id INT NOT NULL, PRIMARY KEY (goods_id, filter_id) ) ENGINE=MEMORY; [0.00031685829162598 sec]
INSERT INTO tmp_pairs_7872o4ivb3i1kqu0ktfho38ghf_6a2aa2961d5b4 (goods_id, filter_id) SELECT DISTINCT A.id AS goods_id, f.id AS filter_id FROM tmp_A_7872o4ivb3i1kqu0ktfho38ghf_6a2aa2961d5b4 A INNER JOIN pod_good_filter gf ON A.id = gf.id_good AND gf.filter_id_value NOT IN (362,382,463) INNER JOIN pod_cat_filter cf ON gf.filter_id = cf.filter_id AND cf.category_id = 447 INNER JOIN pod_filter fm ON gf.filter_id = fm.id AND fm.is_split = 0 AND fm.is_active INNER JOIN pod_filter f ON gf.filter_id_value = f.id AND f.is_active [0.0099279880523682 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_counts_7872o4ivb3i1kqu0ktfho38ghf_6a2aa2961d5b4; CREATE TEMPORARY TABLE tmp_counts_7872o4ivb3i1kqu0ktfho38ghf_6a2aa2961d5b4 ( filter_id INT NOT NULL PRIMARY KEY, count INT NOT NULL ) ENGINE=MEMORY; [0.00038290023803711 sec]
INSERT IGNORE INTO tmp_counts_7872o4ivb3i1kqu0ktfho38ghf_6a2aa2961d5b4 (filter_id, count) SELECT p.filter_id, COUNT(*) AS count FROM tmp_pairs_7872o4ivb3i1kqu0ktfho38ghf_6a2aa2961d5b4 p GROUP BY p.filter_id [0.00027608871459961 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_7872o4ivb3i1kqu0ktfho38ghf_6a2aa2961d5b4 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.00028896331787109 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_A_7872o4ivb3i1kqu0ktfho38ghf_6a2aa2961d5b4 [0.00020718574523926 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_pairs_7872o4ivb3i1kqu0ktfho38ghf_6a2aa2961d5b4 [7.319450378418E-5 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_counts_7872o4ivb3i1kqu0ktfho38ghf_6a2aa2961d5b4 [7.2956085205078E-5 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_A_7872o4ivb3i1kqu0ktfho38ghf_6a2aa29620cfb; CREATE TEMPORARY TABLE tmp_A_7872o4ivb3i1kqu0ktfho38ghf_6a2aa29620cfb ( id INT NOT NULL, entry INT NOT NULL, PRIMARY KEY (id), KEY idx_entry (entry) ) ENGINE=MEMORY; [0.00018596649169922 sec]
INSERT INTO tmp_A_7872o4ivb3i1kqu0ktfho38ghf_6a2aa29620cfb (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 (362,382) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (463) WHERE g.cat_id IN (447) AND g.brand_id IN (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 (362,382) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (463) WHERE dc.dop_cat_id IN (447) AND g.brand_id IN (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 (362,382) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (463) WHERE g.cat_id IN (447) AND g.brand_id IN (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 (362,382) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (463) WHERE dc.dop_cat_id IN (447) AND g.brand_id IN (2610) AND go.is_present AND go.is_active AND g.is_present_all_mods AND g.is_active ) A [0.0010771751403809 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_pairs_7872o4ivb3i1kqu0ktfho38ghf_6a2aa29620cfb; CREATE TEMPORARY TABLE tmp_pairs_7872o4ivb3i1kqu0ktfho38ghf_6a2aa29620cfb ( goods_id INT NOT NULL, filter_id INT NOT NULL, PRIMARY KEY (goods_id, filter_id) ) ENGINE=MEMORY; [0.00020098686218262 sec]
INSERT INTO tmp_pairs_7872o4ivb3i1kqu0ktfho38ghf_6a2aa29620cfb (goods_id, filter_id) SELECT DISTINCT A.entry AS goods_id, f.id AS filter_id FROM tmp_A_7872o4ivb3i1kqu0ktfho38ghf_6a2aa29620cfb A INNER JOIN pod_good_filter gf ON A.id = gf.id_good AND gf.filter_id_value NOT IN (362,382,463) INNER JOIN pod_cat_filter cf ON gf.filter_id = cf.filter_id AND cf.category_id = 447 INNER JOIN pod_filter fm ON gf.filter_id = fm.id AND fm.is_split = 1 AND fm.is_active INNER JOIN pod_filter f ON gf.filter_id_value = f.id AND f.is_active [0.00046706199645996 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_counts_7872o4ivb3i1kqu0ktfho38ghf_6a2aa29620cfb; CREATE TEMPORARY TABLE tmp_counts_7872o4ivb3i1kqu0ktfho38ghf_6a2aa29620cfb ( filter_id INT NOT NULL PRIMARY KEY, count INT NOT NULL ) ENGINE=MEMORY; [0.00019001960754395 sec]
INSERT IGNORE INTO tmp_counts_7872o4ivb3i1kqu0ktfho38ghf_6a2aa29620cfb (filter_id, count) SELECT p.filter_id, COUNT(*) AS count FROM tmp_pairs_7872o4ivb3i1kqu0ktfho38ghf_6a2aa29620cfb p GROUP BY p.filter_id [0.00016498565673828 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_7872o4ivb3i1kqu0ktfho38ghf_6a2aa29620cfb 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.00017309188842773 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_A_7872o4ivb3i1kqu0ktfho38ghf_6a2aa29620cfb [0.0001220703125 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_pairs_7872o4ivb3i1kqu0ktfho38ghf_6a2aa29620cfb [5.2928924560547E-5 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_counts_7872o4ivb3i1kqu0ktfho38ghf_6a2aa29620cfb [7.319450378418E-5 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_A_7872o4ivb3i1kqu0ktfho38ghf_6a2aa29621b32; CREATE TEMPORARY TABLE tmp_A_7872o4ivb3i1kqu0ktfho38ghf_6a2aa29621b32 ( id INT NOT NULL, entry INT NOT NULL, PRIMARY KEY (id), KEY idx_entry (entry) ) ENGINE=MEMORY [0.00013399124145508 sec]
INSERT INTO tmp_A_7872o4ivb3i1kqu0ktfho38ghf_6a2aa29621b32 (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) WHERE g.cat_id IN (447) AND g.brand_id IN (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) WHERE dc.dop_cat_id IN (447) AND g.brand_id IN (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) WHERE g.cat_id IN (447) AND g.brand_id IN (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) WHERE dc.dop_cat_id IN (447) AND g.brand_id IN (2610) AND go.is_present AND go.is_active AND g.is_present_all_mods AND g.is_active ) A [0.00099396705627441 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_pairs_7872o4ivb3i1kqu0ktfho38ghf_6a2aa29621b32; CREATE TEMPORARY TABLE tmp_pairs_7872o4ivb3i1kqu0ktfho38ghf_6a2aa29621b32 ( goods_id INT NOT NULL, filter_id INT NOT NULL, PRIMARY KEY (goods_id, filter_id) ) ENGINE=MEMORY [0.00018596649169922 sec]
INSERT INTO tmp_pairs_7872o4ivb3i1kqu0ktfho38ghf_6a2aa29621b32 (goods_id, filter_id) SELECT DISTINCT A.entry AS goods_id, f.id AS filter_id FROM tmp_A_7872o4ivb3i1kqu0ktfho38ghf_6a2aa29621b32 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.00091004371643066 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_counts_7872o4ivb3i1kqu0ktfho38ghf_6a2aa29621b32; CREATE TEMPORARY TABLE tmp_counts_7872o4ivb3i1kqu0ktfho38ghf_6a2aa29621b32 ( filter_id INT NOT NULL PRIMARY KEY, count INT NOT NULL ) ENGINE=MEMORY [0.00017309188842773 sec]
INSERT INTO tmp_counts_7872o4ivb3i1kqu0ktfho38ghf_6a2aa29621b32 (filter_id, count) SELECT p.filter_id, COUNT(*) AS count FROM tmp_pairs_7872o4ivb3i1kqu0ktfho38ghf_6a2aa29621b32 p GROUP BY p.filter_id [0.00014996528625488 sec]
INSERT INTO tmp_counts_7872o4ivb3i1kqu0ktfho38ghf_6a2aa29621b32 (filter_id, count) SELECT pf.id, 0 FROM pod_filter pf LEFT JOIN tmp_counts_7872o4ivb3i1kqu0ktfho38ghf_6a2aa29621b32 c ON c.filter_id = pf.id WHERE pf.id in (362,382) AND c.filter_id IS NULL [0.0001521110534668 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_7872o4ivb3i1kqu0ktfho38ghf_6a2aa29621b32 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.0001680850982666 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_A_7872o4ivb3i1kqu0ktfho38ghf_6a2aa29621b32 [0.00010895729064941 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_pairs_7872o4ivb3i1kqu0ktfho38ghf_6a2aa29621b32 [7.1048736572266E-5 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_counts_7872o4ivb3i1kqu0ktfho38ghf_6a2aa29621b32 [7.0095062255859E-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 (382,362) and f.is_active AND mf.is_active ORDER BY mf.id, f.id [0.00027608871459961 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_A_7872o4ivb3i1kqu0ktfho38ghf_6a2aa29622dd0; CREATE TEMPORARY TABLE tmp_A_7872o4ivb3i1kqu0ktfho38ghf_6a2aa29622dd0 ( id INT NOT NULL, PRIMARY KEY (id) ) ENGINE=MEMORY; [0.00021910667419434 sec]
INSERT INTO tmp_A_7872o4ivb3i1kqu0ktfho38ghf_6a2aa29622dd0 (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 (362,382) WHERE g.cat_id IN (447) AND g.brand_id IN (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 (362,382) WHERE dc.dop_cat_id IN (447) AND g.brand_id IN (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 (362,382) WHERE g.cat_id IN (447) AND g.brand_id IN (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 (362,382) WHERE dc.dop_cat_id IN (447) AND g.brand_id IN (2610) AND go.is_present AND go.is_active AND g.is_present_all_mods AND g.is_active ) A [0.0010449886322021 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_pairs_7872o4ivb3i1kqu0ktfho38ghf_6a2aa29622dd0; CREATE TEMPORARY TABLE tmp_pairs_7872o4ivb3i1kqu0ktfho38ghf_6a2aa29622dd0 ( goods_id INT NOT NULL, filter_id INT NOT NULL, PRIMARY KEY (goods_id, filter_id) ) ENGINE=MEMORY; [0.00018692016601562 sec]
INSERT INTO tmp_pairs_7872o4ivb3i1kqu0ktfho38ghf_6a2aa29622dd0 (goods_id, filter_id) SELECT DISTINCT A.id AS goods_id, f.id AS filter_id FROM tmp_A_7872o4ivb3i1kqu0ktfho38ghf_6a2aa29622dd0 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.00057220458984375 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_counts_7872o4ivb3i1kqu0ktfho38ghf_6a2aa29622dd0; CREATE TEMPORARY TABLE tmp_counts_7872o4ivb3i1kqu0ktfho38ghf_6a2aa29622dd0 ( filter_id INT NOT NULL PRIMARY KEY, count INT NOT NULL ) ENGINE=MEMORY; [0.00015997886657715 sec]
INSERT INTO tmp_counts_7872o4ivb3i1kqu0ktfho38ghf_6a2aa29622dd0 (filter_id, count) SELECT p.filter_id, COUNT(*) AS count FROM tmp_pairs_7872o4ivb3i1kqu0ktfho38ghf_6a2aa29622dd0 p GROUP BY p.filter_id [0.00016498565673828 sec]
INSERT IGNORE INTO tmp_counts_7872o4ivb3i1kqu0ktfho38ghf_6a2aa29622dd0 (filter_id, count) SELECT pf.id, 0 FROM pod_filter pf LEFT JOIN tmp_counts_7872o4ivb3i1kqu0ktfho38ghf_6a2aa29622dd0 c ON c.filter_id = pf.id WHERE pf.id in (463) AND c.filter_id IS NULL [0.00011491775512695 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_7872o4ivb3i1kqu0ktfho38ghf_6a2aa29622dd0 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.00016593933105469 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_A_7872o4ivb3i1kqu0ktfho38ghf_6a2aa29622dd0 [0.0001070499420166 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_pairs_7872o4ivb3i1kqu0ktfho38ghf_6a2aa29622dd0 [4.887580871582E-5 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_counts_7872o4ivb3i1kqu0ktfho38ghf_6a2aa29622dd0 [4.887580871582E-5 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_A_7872o4ivb3i1kqu0ktfho38ghf_6a2aa29623b50; CREATE TEMPORARY TABLE tmp_A_7872o4ivb3i1kqu0ktfho38ghf_6a2aa29623b50 ( entry INT NOT NULL, sub_icon_id INT NOT NULL, PRIMARY KEY (entry, sub_icon_id) ) ENGINE=MEMORY; [0.00011682510375977 sec]
INSERT IGNORE INTO tmp_A_7872o4ivb3i1kqu0ktfho38ghf_6a2aa29623b50 (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 (362,382) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (463) WHERE g.cat_id IN (447) AND g.brand_id IN (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 (362,382) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (463) WHERE dc.dop_cat_id IN (447) AND g.brand_id IN (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 (362,382) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (463) WHERE g.cat_id IN (447) AND g.brand_id IN (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 (362,382) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (463) WHERE dc.dop_cat_id IN (447) AND g.brand_id IN (2610) AND go.is_present AND go.is_active AND g.is_present_all_mods AND g.is_active ) A [0.0009310245513916 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_counts_7872o4ivb3i1kqu0ktfho38ghf_6a2aa29623b50; CREATE TEMPORARY TABLE tmp_counts_7872o4ivb3i1kqu0ktfho38ghf_6a2aa29623b50 ( sub_icon_id INT NOT NULL PRIMARY KEY, count INT NOT NULL ) ENGINE=MEMORY; [0.00019693374633789 sec]
INSERT IGNORE INTO tmp_counts_7872o4ivb3i1kqu0ktfho38ghf_6a2aa29623b50 (sub_icon_id, count) SELECT sub_icon_id, COUNT(DISTINCT entry) AS count FROM ( SELECT A.entry, A.sub_icon_id FROM tmp_A_7872o4ivb3i1kqu0ktfho38ghf_6a2aa29623b50 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.0002129077911377 sec]
SELECT c.sub_icon_id AS id, c.count, si.entry, si.name AS name, si.url FROM tmp_counts_7872o4ivb3i1kqu0ktfho38ghf_6a2aa29623b50 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.00011301040649414 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_A_7872o4ivb3i1kqu0ktfho38ghf_6a2aa29623b50 [0.00010204315185547 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_counts_7872o4ivb3i1kqu0ktfho38ghf_6a2aa29623b50 [5.0067901611328E-5 sec]
Низкие цены на Конструктор для девочек Picasso (Пікaссo) – большой выбор, фото. Купить Конструктор для девочек Picasso (Пікaссo) в Киеве и Украине

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

ПЕРЕЙТИ

Конструктор для девочек Picasso