SELECT url_to, r404 FROM pod_redirect WHERE BINARY REPLACE(url_from,'/ru/','/') = '/kofty_dlya_devochek/red-orange1-gray-turquoise-o_7-polyester.html' LIMIT 0,1 [0.0006101131439209 sec]
SELECT pod_filter.id,pod_filter.url FROM pod_filter WHERE BINARY pod_filter.url IN ('red','orange1','gray','turquoise','o_7','polyester') order by url [0.0023970603942871 sec]
SELECT pod_sub_icon.id,pod_sub_icon.url FROM pod_sub_icon WHERE BINARY pod_sub_icon.url IN ('red','orange1','gray','turquoise','o_7','polyester') order by url [0.0017290115356445 sec]
SELECT id, url FROM pod_filter WHERE url IN ('red','orange1','gray','turquoise','o_7','polyester') [0.0014078617095947 sec]
SELECT id, url FROM pod_sub_icon WHERE url IN ('red','orange1','gray','turquoise','o_7','polyester') [0.001162052154541 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 (32,28,365,392,24,117) and f.is_active AND mf.is_active ORDER BY mf.id, f.id [0.00080108642578125 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 (24,28,32,117) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (392) INNER JOIN pod_good_filter gf2 ON g.id = gf2.id_good AND gf2.filter_id_value in (365) WHERE g.cat_id IN (347) 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 (24,28,32,117) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (392) INNER JOIN pod_good_filter gf2 ON g.id = gf2.id_good AND gf2.filter_id_value in (365) WHERE dc.dop_cat_id IN (347) 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 g.id = gf0.id_good AND gf0.filter_id_value in (24,28,32,117) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (392) INNER JOIN pod_good_filter gf2 ON go.id = gf2.id_good AND gf2.filter_id_value in (365) WHERE g.cat_id IN (347) 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 g.id = gf0.id_good AND gf0.filter_id_value in (24,28,32,117) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (392) INNER JOIN pod_good_filter gf2 ON go.id = gf2.id_good AND gf2.filter_id_value in (365) WHERE dc.dop_cat_id IN (347) AND go.is_present AND go.is_active AND g.is_present_all_mods AND g.is_active [0.040168046951294 sec]
CREATE TEMPORARY TABLE temp_brand_counts_6a2aa1e1c44ba ( id INT, gid INT, INDEX idx_id (id), INDEX idx_gid (gid) ) [0.00081086158752441 sec]
INSERT INTO temp_brand_counts_6a2aa1e1c44ba (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 (24,28,32,117) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (392) INNER JOIN pod_good_filter gf2 ON g.id = gf2.id_good AND gf2.filter_id_value in (365) WHERE g.cat_id IN (347) 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 (24,28,32,117) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (392) INNER JOIN pod_good_filter gf2 ON g.id = gf2.id_good AND gf2.filter_id_value in (365) WHERE dc.dop_cat_id IN (347) 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 g.id = gf0.id_good AND gf0.filter_id_value in (24,28,32,117) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (392) INNER JOIN pod_good_filter gf2 ON go.id = gf2.id_good AND gf2.filter_id_value in (365) WHERE g.cat_id IN (347) 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 g.id = gf0.id_good AND gf0.filter_id_value in (24,28,32,117) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (392) INNER JOIN pod_good_filter gf2 ON go.id = gf2.id_good AND gf2.filter_id_value in (365) WHERE dc.dop_cat_id IN (347) AND go.is_present AND go.is_active AND g.is_present_all_mods AND g.is_active [0.235995054245 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_6a2aa1e1c44ba 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.0010261535644531 sec]
DROP TEMPORARY TABLE IF EXISTS temp_brand_counts_6a2aa1e1c44ba [0.00027012825012207 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 (24,28,32,117) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (392) INNER JOIN pod_good_filter gf2 ON g.id = gf2.id_good AND gf2.filter_id_value in (365) WHERE g.cat_id IN (347) 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 (24,28,32,117) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (392) INNER JOIN pod_good_filter gf2 ON g.id = gf2.id_good AND gf2.filter_id_value in (365) WHERE dc.dop_cat_id IN (347) 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 g.id = gf0.id_good AND gf0.filter_id_value in (24,28,32,117) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (392) INNER JOIN pod_good_filter gf2 ON go.id = gf2.id_good AND gf2.filter_id_value in (365) WHERE g.cat_id IN (347) 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 g.id = gf0.id_good AND gf0.filter_id_value in (24,28,32,117) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (392) INNER JOIN pod_good_filter gf2 ON go.id = gf2.id_good AND gf2.filter_id_value in (365) WHERE dc.dop_cat_id IN (347) AND go.is_present AND go.is_active AND g.is_present_all_mods AND g.is_active ) A [0.0058789253234863 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 >= '299' and g.price <= '299',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 >= '299' and g.price <= '299',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 >= '299' and pcg.price <= '299') WHERE g.id in (470219) GROUP BY g.id ORDER BY g.ordr desc [0.0022411346435547 sec]
SELECT id, name AS name, url FROM pod_filter WHERE id in (32,28,365,392,24,117) AND is_active='1' [0.00035405158996582 sec]
SELECT cf.id, cf.info AS info, cf.title AS title, cf.metadesc AS metadesc, cf.seo_text AS seo_text, cf.tagH1 AS tagH1, cf.is_active FROM pod_set_cat_subicon cf INNER JOIN pod_sub_icon f ON cf.subicon_id = f.id WHERE cf.cat_id = 347 AND f.url = 'red' LIMIT 1 [0.00045299530029297 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_A_ku3ec2urparenoflcfutpkk7b5_6a2aa1e20f37e; CREATE TEMPORARY TABLE tmp_A_ku3ec2urparenoflcfutpkk7b5_6a2aa1e20f37e ( id INT NOT NULL, PRIMARY KEY (id) ) ENGINE=MEMORY; [0.0003809928894043 sec]
INSERT INTO tmp_A_ku3ec2urparenoflcfutpkk7b5_6a2aa1e20f37e (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 (24,28,32,117) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (392) INNER JOIN pod_good_filter gf2 ON g.id = gf2.id_good AND gf2.filter_id_value in (365) WHERE g.cat_id IN (347) 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 (24,28,32,117) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (392) INNER JOIN pod_good_filter gf2 ON g.id = gf2.id_good AND gf2.filter_id_value in (365) WHERE dc.dop_cat_id IN (347) 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 g.id = gf0.id_good AND gf0.filter_id_value in (24,28,32,117) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (392) INNER JOIN pod_good_filter gf2 ON go.id = gf2.id_good AND gf2.filter_id_value in (365) WHERE g.cat_id IN (347) 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 g.id = gf0.id_good AND gf0.filter_id_value in (24,28,32,117) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (392) INNER JOIN pod_good_filter gf2 ON go.id = gf2.id_good AND gf2.filter_id_value in (365) WHERE dc.dop_cat_id IN (347) AND go.is_present AND go.is_active AND g.is_present_all_mods AND g.is_active ) A [0.0029339790344238 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_pairs_ku3ec2urparenoflcfutpkk7b5_6a2aa1e20f37e; CREATE TEMPORARY TABLE tmp_pairs_ku3ec2urparenoflcfutpkk7b5_6a2aa1e20f37e ( goods_id INT NOT NULL, filter_id INT NOT NULL, PRIMARY KEY (goods_id, filter_id) ) ENGINE=MEMORY; [0.00020813941955566 sec]
INSERT INTO tmp_pairs_ku3ec2urparenoflcfutpkk7b5_6a2aa1e20f37e (goods_id, filter_id) SELECT DISTINCT A.id AS goods_id, f.id AS filter_id FROM tmp_A_ku3ec2urparenoflcfutpkk7b5_6a2aa1e20f37e A INNER JOIN pod_good_filter gf ON A.id = gf.id_good AND gf.filter_id_value NOT IN (24,28,32,117,392,365) INNER JOIN pod_cat_filter cf ON gf.filter_id = cf.filter_id AND cf.category_id = 347 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.0063838958740234 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_counts_ku3ec2urparenoflcfutpkk7b5_6a2aa1e20f37e; CREATE TEMPORARY TABLE tmp_counts_ku3ec2urparenoflcfutpkk7b5_6a2aa1e20f37e ( filter_id INT NOT NULL PRIMARY KEY, count INT NOT NULL ) ENGINE=MEMORY; [0.00036501884460449 sec]
INSERT IGNORE INTO tmp_counts_ku3ec2urparenoflcfutpkk7b5_6a2aa1e20f37e (filter_id, count) SELECT p.filter_id, COUNT(*) AS count FROM tmp_pairs_ku3ec2urparenoflcfutpkk7b5_6a2aa1e20f37e p GROUP BY p.filter_id [0.00028109550476074 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_ku3ec2urparenoflcfutpkk7b5_6a2aa1e20f37e 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.00029110908508301 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_A_ku3ec2urparenoflcfutpkk7b5_6a2aa1e20f37e [0.00026392936706543 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_pairs_ku3ec2urparenoflcfutpkk7b5_6a2aa1e20f37e [0.00012016296386719 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_counts_ku3ec2urparenoflcfutpkk7b5_6a2aa1e20f37e [0.00014400482177734 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_A_ku3ec2urparenoflcfutpkk7b5_6a2aa1e212436; CREATE TEMPORARY TABLE tmp_A_ku3ec2urparenoflcfutpkk7b5_6a2aa1e212436 ( id INT NOT NULL, entry INT NOT NULL, PRIMARY KEY (id), KEY idx_entry (entry) ) ENGINE=MEMORY; [0.00024318695068359 sec]
INSERT INTO tmp_A_ku3ec2urparenoflcfutpkk7b5_6a2aa1e212436 (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 (24,28,32,117) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (392) INNER JOIN pod_good_filter gf2 ON g.id = gf2.id_good AND gf2.filter_id_value in (365) WHERE g.cat_id IN (347) 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 (24,28,32,117) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (392) INNER JOIN pod_good_filter gf2 ON g.id = gf2.id_good AND gf2.filter_id_value in (365) WHERE dc.dop_cat_id IN (347) 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 (24,28,32,117) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (392) INNER JOIN pod_good_filter gf2 ON go.id = gf2.id_good AND gf2.filter_id_value in (365) WHERE g.cat_id IN (347) 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 (24,28,32,117) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (392) INNER JOIN pod_good_filter gf2 ON go.id = gf2.id_good AND gf2.filter_id_value in (365) WHERE dc.dop_cat_id IN (347) AND go.is_present AND go.is_active AND g.is_present_all_mods AND g.is_active ) A [0.0054950714111328 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_pairs_ku3ec2urparenoflcfutpkk7b5_6a2aa1e212436; CREATE TEMPORARY TABLE tmp_pairs_ku3ec2urparenoflcfutpkk7b5_6a2aa1e212436 ( goods_id INT NOT NULL, filter_id INT NOT NULL, PRIMARY KEY (goods_id, filter_id) ) ENGINE=MEMORY; [0.00036191940307617 sec]
INSERT INTO tmp_pairs_ku3ec2urparenoflcfutpkk7b5_6a2aa1e212436 (goods_id, filter_id) SELECT DISTINCT A.entry AS goods_id, f.id AS filter_id FROM tmp_A_ku3ec2urparenoflcfutpkk7b5_6a2aa1e212436 A INNER JOIN pod_good_filter gf ON A.id = gf.id_good AND gf.filter_id_value NOT IN (24,28,32,117,392,365) INNER JOIN pod_cat_filter cf ON gf.filter_id = cf.filter_id AND cf.category_id = 347 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.0016379356384277 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_counts_ku3ec2urparenoflcfutpkk7b5_6a2aa1e212436; CREATE TEMPORARY TABLE tmp_counts_ku3ec2urparenoflcfutpkk7b5_6a2aa1e212436 ( filter_id INT NOT NULL PRIMARY KEY, count INT NOT NULL ) ENGINE=MEMORY; [0.00033688545227051 sec]
INSERT IGNORE INTO tmp_counts_ku3ec2urparenoflcfutpkk7b5_6a2aa1e212436 (filter_id, count) SELECT p.filter_id, COUNT(*) AS count FROM tmp_pairs_ku3ec2urparenoflcfutpkk7b5_6a2aa1e212436 p GROUP BY p.filter_id [0.00030708312988281 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_ku3ec2urparenoflcfutpkk7b5_6a2aa1e212436 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.00031113624572754 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_A_ku3ec2urparenoflcfutpkk7b5_6a2aa1e212436 [0.00025606155395508 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_pairs_ku3ec2urparenoflcfutpkk7b5_6a2aa1e212436 [0.00011396408081055 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_counts_ku3ec2urparenoflcfutpkk7b5_6a2aa1e212436 [0.00011801719665527 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_A_ku3ec2urparenoflcfutpkk7b5_6a2aa1e214e35; CREATE TEMPORARY TABLE tmp_A_ku3ec2urparenoflcfutpkk7b5_6a2aa1e214e35 ( id INT NOT NULL, PRIMARY KEY (id) ) ENGINE=MEMORY; [0.00032711029052734 sec]
INSERT INTO tmp_A_ku3ec2urparenoflcfutpkk7b5_6a2aa1e214e35 (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 (392) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (365) WHERE g.cat_id IN (347) 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 (392) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (365) WHERE dc.dop_cat_id IN (347) 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 g.id = gf0.id_good AND gf0.filter_id_value in (392) INNER JOIN pod_good_filter gf1 ON go.id = gf1.id_good AND gf1.filter_id_value in (365) WHERE g.cat_id IN (347) 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 g.id = gf0.id_good AND gf0.filter_id_value in (392) INNER JOIN pod_good_filter gf1 ON go.id = gf1.id_good AND gf1.filter_id_value in (365) WHERE dc.dop_cat_id IN (347) AND go.is_present AND go.is_active AND g.is_present_all_mods AND g.is_active ) A [0.0045981407165527 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_pairs_ku3ec2urparenoflcfutpkk7b5_6a2aa1e214e35; CREATE TEMPORARY TABLE tmp_pairs_ku3ec2urparenoflcfutpkk7b5_6a2aa1e214e35 ( goods_id INT NOT NULL, filter_id INT NOT NULL, PRIMARY KEY (goods_id, filter_id) ) ENGINE=MEMORY; [0.00035786628723145 sec]
INSERT INTO tmp_pairs_ku3ec2urparenoflcfutpkk7b5_6a2aa1e214e35 (goods_id, filter_id) SELECT DISTINCT A.id AS goods_id, f.id AS filter_id FROM tmp_A_ku3ec2urparenoflcfutpkk7b5_6a2aa1e214e35 A INNER JOIN pod_good_filter gf ON A.id = gf.id_good AND gf.filter_id = 20 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.00073480606079102 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_counts_ku3ec2urparenoflcfutpkk7b5_6a2aa1e214e35; CREATE TEMPORARY TABLE tmp_counts_ku3ec2urparenoflcfutpkk7b5_6a2aa1e214e35 ( filter_id INT NOT NULL PRIMARY KEY, count INT NOT NULL ) ENGINE=MEMORY; [0.00036883354187012 sec]
INSERT INTO tmp_counts_ku3ec2urparenoflcfutpkk7b5_6a2aa1e214e35 (filter_id, count) SELECT p.filter_id, COUNT(*) AS count FROM tmp_pairs_ku3ec2urparenoflcfutpkk7b5_6a2aa1e214e35 p GROUP BY p.filter_id [0.00032401084899902 sec]
INSERT IGNORE INTO tmp_counts_ku3ec2urparenoflcfutpkk7b5_6a2aa1e214e35 (filter_id, count) SELECT pf.id, 0 FROM pod_filter pf LEFT JOIN tmp_counts_ku3ec2urparenoflcfutpkk7b5_6a2aa1e214e35 c ON c.filter_id = pf.id WHERE pf.id in (24,28,32,117) AND c.filter_id IS NULL [0.00039005279541016 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_ku3ec2urparenoflcfutpkk7b5_6a2aa1e214e35 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.00037503242492676 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_A_ku3ec2urparenoflcfutpkk7b5_6a2aa1e214e35 [0.0002591609954834 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_pairs_ku3ec2urparenoflcfutpkk7b5_6a2aa1e214e35 [0.00014901161193848 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_counts_ku3ec2urparenoflcfutpkk7b5_6a2aa1e214e35 [0.00011682510375977 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 (32,28,365,24,117) and f.is_active AND mf.is_active ORDER BY mf.id, f.id [0.00045084953308105 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_A_ku3ec2urparenoflcfutpkk7b5_6a2aa1e2175b7; CREATE TEMPORARY TABLE tmp_A_ku3ec2urparenoflcfutpkk7b5_6a2aa1e2175b7 ( id INT NOT NULL, PRIMARY KEY (id) ) ENGINE=MEMORY; [0.00037622451782227 sec]
INSERT INTO tmp_A_ku3ec2urparenoflcfutpkk7b5_6a2aa1e2175b7 (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 (24,28,32,117) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (365) WHERE g.cat_id IN (347) 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 (24,28,32,117) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (365) WHERE dc.dop_cat_id IN (347) 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 g.id = gf0.id_good AND gf0.filter_id_value in (24,28,32,117) INNER JOIN pod_good_filter gf1 ON go.id = gf1.id_good AND gf1.filter_id_value in (365) WHERE g.cat_id IN (347) 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 g.id = gf0.id_good AND gf0.filter_id_value in (24,28,32,117) INNER JOIN pod_good_filter gf1 ON go.id = gf1.id_good AND gf1.filter_id_value in (365) WHERE dc.dop_cat_id IN (347) AND go.is_present AND go.is_active AND g.is_present_all_mods AND g.is_active ) A [0.0095438957214355 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_pairs_ku3ec2urparenoflcfutpkk7b5_6a2aa1e2175b7; CREATE TEMPORARY TABLE tmp_pairs_ku3ec2urparenoflcfutpkk7b5_6a2aa1e2175b7 ( goods_id INT NOT NULL, filter_id INT NOT NULL, PRIMARY KEY (goods_id, filter_id) ) ENGINE=MEMORY; [0.00043582916259766 sec]
INSERT INTO tmp_pairs_ku3ec2urparenoflcfutpkk7b5_6a2aa1e2175b7 (goods_id, filter_id) SELECT DISTINCT A.id AS goods_id, f.id AS filter_id FROM tmp_A_ku3ec2urparenoflcfutpkk7b5_6a2aa1e2175b7 A INNER JOIN pod_good_filter gf ON A.id = gf.id_good AND gf.filter_id = 122 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.0061280727386475 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_counts_ku3ec2urparenoflcfutpkk7b5_6a2aa1e2175b7; CREATE TEMPORARY TABLE tmp_counts_ku3ec2urparenoflcfutpkk7b5_6a2aa1e2175b7 ( filter_id INT NOT NULL PRIMARY KEY, count INT NOT NULL ) ENGINE=MEMORY; [0.00048422813415527 sec]
INSERT INTO tmp_counts_ku3ec2urparenoflcfutpkk7b5_6a2aa1e2175b7 (filter_id, count) SELECT p.filter_id, COUNT(*) AS count FROM tmp_pairs_ku3ec2urparenoflcfutpkk7b5_6a2aa1e2175b7 p GROUP BY p.filter_id [0.00042486190795898 sec]
INSERT IGNORE INTO tmp_counts_ku3ec2urparenoflcfutpkk7b5_6a2aa1e2175b7 (filter_id, count) SELECT pf.id, 0 FROM pod_filter pf LEFT JOIN tmp_counts_ku3ec2urparenoflcfutpkk7b5_6a2aa1e2175b7 c ON c.filter_id = pf.id WHERE pf.id in (392) AND c.filter_id IS NULL [0.00035500526428223 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_ku3ec2urparenoflcfutpkk7b5_6a2aa1e2175b7 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.00042319297790527 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_A_ku3ec2urparenoflcfutpkk7b5_6a2aa1e2175b7 [0.00039482116699219 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_pairs_ku3ec2urparenoflcfutpkk7b5_6a2aa1e2175b7 [0.00022482872009277 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_counts_ku3ec2urparenoflcfutpkk7b5_6a2aa1e2175b7 [0.0001678466796875 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 (32,28,392,24,117) and f.is_active AND mf.is_active ORDER BY mf.id, f.id [0.00057601928710938 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_A_ku3ec2urparenoflcfutpkk7b5_6a2aa1e21cd0d; CREATE TEMPORARY TABLE tmp_A_ku3ec2urparenoflcfutpkk7b5_6a2aa1e21cd0d ( id INT NOT NULL, entry INT NOT NULL, PRIMARY KEY (id), KEY idx_entry (entry) ) ENGINE=MEMORY [0.00054216384887695 sec]
INSERT INTO tmp_A_ku3ec2urparenoflcfutpkk7b5_6a2aa1e21cd0d (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 (24,28,32,117) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (392) WHERE g.cat_id IN (347) 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 (24,28,32,117) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (392) WHERE dc.dop_cat_id IN (347) 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 (24,28,32,117) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (392) WHERE g.cat_id IN (347) 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 (24,28,32,117) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (392) WHERE dc.dop_cat_id IN (347) AND go.is_present AND go.is_active AND g.is_present_all_mods AND g.is_active ) A [0.0059049129486084 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_pairs_ku3ec2urparenoflcfutpkk7b5_6a2aa1e21cd0d; CREATE TEMPORARY TABLE tmp_pairs_ku3ec2urparenoflcfutpkk7b5_6a2aa1e21cd0d ( goods_id INT NOT NULL, filter_id INT NOT NULL, PRIMARY KEY (goods_id, filter_id) ) ENGINE=MEMORY [0.00040912628173828 sec]
INSERT INTO tmp_pairs_ku3ec2urparenoflcfutpkk7b5_6a2aa1e21cd0d (goods_id, filter_id) SELECT DISTINCT A.entry AS goods_id, f.id AS filter_id FROM tmp_A_ku3ec2urparenoflcfutpkk7b5_6a2aa1e21cd0d 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.0007939338684082 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_counts_ku3ec2urparenoflcfutpkk7b5_6a2aa1e21cd0d; CREATE TEMPORARY TABLE tmp_counts_ku3ec2urparenoflcfutpkk7b5_6a2aa1e21cd0d ( filter_id INT NOT NULL PRIMARY KEY, count INT NOT NULL ) ENGINE=MEMORY [0.00040292739868164 sec]
INSERT INTO tmp_counts_ku3ec2urparenoflcfutpkk7b5_6a2aa1e21cd0d (filter_id, count) SELECT p.filter_id, COUNT(*) AS count FROM tmp_pairs_ku3ec2urparenoflcfutpkk7b5_6a2aa1e21cd0d p GROUP BY p.filter_id [0.00039482116699219 sec]
INSERT INTO tmp_counts_ku3ec2urparenoflcfutpkk7b5_6a2aa1e21cd0d (filter_id, count) SELECT pf.id, 0 FROM pod_filter pf LEFT JOIN tmp_counts_ku3ec2urparenoflcfutpkk7b5_6a2aa1e21cd0d c ON c.filter_id = pf.id WHERE pf.id in (365) AND c.filter_id IS NULL [0.00026202201843262 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_ku3ec2urparenoflcfutpkk7b5_6a2aa1e21cd0d 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.0003960132598877 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_A_ku3ec2urparenoflcfutpkk7b5_6a2aa1e21cd0d [0.00035405158996582 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_pairs_ku3ec2urparenoflcfutpkk7b5_6a2aa1e21cd0d [0.00012397766113281 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_counts_ku3ec2urparenoflcfutpkk7b5_6a2aa1e21cd0d [0.00011610984802246 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_A_ku3ec2urparenoflcfutpkk7b5_6a2aa1e21f91d; CREATE TEMPORARY TABLE tmp_A_ku3ec2urparenoflcfutpkk7b5_6a2aa1e21f91d ( entry INT NOT NULL, sub_icon_id INT NOT NULL, PRIMARY KEY (entry, sub_icon_id) ) ENGINE=MEMORY; [0.00034093856811523 sec]
INSERT IGNORE INTO tmp_A_ku3ec2urparenoflcfutpkk7b5_6a2aa1e21f91d (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 (24,28,32,117) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (392) INNER JOIN pod_good_filter gf2 ON g.id = gf2.id_good AND gf2.filter_id_value in (365) WHERE g.cat_id IN (347) 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 (24,28,32,117) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (392) INNER JOIN pod_good_filter gf2 ON g.id = gf2.id_good AND gf2.filter_id_value in (365) WHERE dc.dop_cat_id IN (347) 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 g.id = gf0.id_good AND gf0.filter_id_value in (24,28,32,117) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (392) INNER JOIN pod_good_filter gf2 ON go.id = gf2.id_good AND gf2.filter_id_value in (365) WHERE g.cat_id IN (347) 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 g.id = gf0.id_good AND gf0.filter_id_value in (24,28,32,117) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (392) INNER JOIN pod_good_filter gf2 ON go.id = gf2.id_good AND gf2.filter_id_value in (365) WHERE dc.dop_cat_id IN (347) AND go.is_present AND go.is_active AND g.is_present_all_mods AND g.is_active ) A [0.0059809684753418 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_counts_ku3ec2urparenoflcfutpkk7b5_6a2aa1e21f91d; CREATE TEMPORARY TABLE tmp_counts_ku3ec2urparenoflcfutpkk7b5_6a2aa1e21f91d ( sub_icon_id INT NOT NULL PRIMARY KEY, count INT NOT NULL ) ENGINE=MEMORY; [0.00038290023803711 sec]
INSERT IGNORE INTO tmp_counts_ku3ec2urparenoflcfutpkk7b5_6a2aa1e21f91d (sub_icon_id, count) SELECT sub_icon_id, COUNT(DISTINCT entry) AS count FROM ( SELECT A.entry, A.sub_icon_id FROM tmp_A_ku3ec2urparenoflcfutpkk7b5_6a2aa1e21f91d 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.00047016143798828 sec]
SELECT c.sub_icon_id AS id, c.count, si.entry, si.name AS name, si.url FROM tmp_counts_ku3ec2urparenoflcfutpkk7b5_6a2aa1e21f91d 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.00029993057250977 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_A_ku3ec2urparenoflcfutpkk7b5_6a2aa1e21f91d [0.0002899169921875 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_counts_ku3ec2urparenoflcfutpkk7b5_6a2aa1e21f91d [0.00012803077697754 sec]
Кофты для девочек Красный/Бордовый, Оранжевый/Абрикосовый, Серый, Бирюзовый/Аквамариновый, 7 лет, полиэстер в интернет-магазине «Подушка». Купить кофты и свитера

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

ПЕРЕЙТИ

Кофты и свитера для девочек : красный/бордовый, оранжевый/абрикосовый, серый, бирюзовый/аквамариновый, 7 лет, полиэстер