SELECT url_to, r404 FROM pod_redirect WHERE BINARY REPLACE(url_from,'/ru/','/') = '/tensel/streak-nav5070.html' LIMIT 0,1 [0.00086617469787598 sec]
select id,name,url, is_active from pod_cat_category where url = 'tensel' [0.0004889965057373 sec]
SELECT pod_filter.id,pod_filter.url FROM pod_filter WHERE BINARY pod_filter.url IN ('streak','nav5070') order by url [0.0017631053924561 sec]
SELECT pod_sub_icon.id,pod_sub_icon.url FROM pod_sub_icon WHERE BINARY pod_sub_icon.url IN ('streak','nav5070') order by url [0.00130295753479 sec]
select id from pod_structure where link='catalogue/103' and active='1' AND lang_ua='1' [0.00031900405883789 sec]
SELECT id, url FROM pod_filter WHERE url IN ('streak','nav5070') [0.00052499771118164 sec]
SELECT id, url FROM pod_sub_icon WHERE url IN ('streak','nav5070') [0.00046491622924805 sec]
SELECT c.id, c.super_category_id, c.entry, c.name_ua AS name, c.title_ua AS cat_title, c.metakwds AS cat_kwds, c.metadesc_ua AS cat_metadesc, c.descr_ua AS cat_descr, cc.name_ua AS parent_name, cc.url AS parent_url, c.url as curl, cc.image AS parent_image, c.seo_text_ua AS seo_text, c.seo_text_mobile_ua AS seo_text_mobile, c.action_text_ua AS action_text, c.view_type, c.is_delivery_custom, c.hide_subcat_sidebar, c.image FROM pod_cat_category c LEFT JOIN pod_cat_category cc ON cc.id=c.entry WHERE c.id='103' [0.00042486190795898 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 (11) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (2885) WHERE g.cat_id IN (103) 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 (11) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (2885) WHERE dc.dop_cat_id IN (103) 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 (11) INNER JOIN pod_good_filter gf1 ON go.id = gf1.id_good AND gf1.filter_id_value in (2885) WHERE g.cat_id IN (103) 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 (11) INNER JOIN pod_good_filter gf1 ON go.id = gf1.id_good AND gf1.filter_id_value in (2885) WHERE dc.dop_cat_id IN (103) AND go.is_present AND go.is_active AND g.is_present_all_mods AND g.is_active [0.014528036117554 sec]
CREATE TEMPORARY TABLE temp_brand_counts_6a2ac09bdce5d ( id INT, gid INT, INDEX idx_id (id), INDEX idx_gid (gid) ) [0.001101016998291 sec]
INSERT INTO temp_brand_counts_6a2ac09bdce5d (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 (11) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (2885) WHERE g.cat_id IN (103) 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 (11) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (2885) WHERE dc.dop_cat_id IN (103) 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 (11) INNER JOIN pod_good_filter gf1 ON go.id = gf1.id_good AND gf1.filter_id_value in (2885) WHERE g.cat_id IN (103) 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 (11) INNER JOIN pod_good_filter gf1 ON go.id = gf1.id_good AND gf1.filter_id_value in (2885) WHERE dc.dop_cat_id IN (103) AND go.is_present AND go.is_active AND g.is_present_all_mods AND g.is_active [0.016815185546875 sec]
SELECT b.id, b.name_ua AS name, pc.name_ua AS country, b.country_id, b.image_icon, b.url, b.ordr, pc.code, COALESCE(tc.count, 0) as count FROM pod_cat_brand b INNER JOIN ( SELECT id, COUNT(gid) as count FROM temp_brand_counts_6a2ac09bdce5d 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.00037002563476562 sec]
DROP TEMPORARY TABLE IF EXISTS temp_brand_counts_6a2ac09bdce5d [0.0001068115234375 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 (11) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (2885) WHERE g.cat_id IN (103) 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 (11) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (2885) WHERE dc.dop_cat_id IN (103) 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 (11) INNER JOIN pod_good_filter gf1 ON go.id = gf1.id_good AND gf1.filter_id_value in (2885) WHERE g.cat_id IN (103) 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 (11) INNER JOIN pod_good_filter gf1 ON go.id = gf1.id_good AND gf1.filter_id_value in (2885) WHERE dc.dop_cat_id IN (103) AND go.is_present AND go.is_active AND g.is_present_all_mods AND g.is_active ) A [0.001115083694458 sec]
SELECT g.id, if(g.is_present and g.price >= '9234' and g.price <= '14050',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 >= '9234' and g.price <= '14050',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 >= '9234' and pcg.price <= '14050' WHERE g.id in (462004) GROUP BY g.id ORDER BY g.ordr desc LIMIT 0, 32 [0.0014669895172119 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_ua AS name, g.name2_ua 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_ua AS brand_name,b.url as burl,b.id as bid, b.country AS brand_country,c.url as curl, c.name_ua AS cat_name, si.name_ua AS sub_icon_name,si.icon AS sub_icon, g.star, g.comment_id, if(g.is_present and g.price >= '9234' and g.price <= '14050',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 >= '9234' and g.price <= '14050',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 >= '9234' and pcg.price <= '14050') WHERE g.id in (462004) GROUP BY g.id ORDER BY g.ordr desc [0.00065898895263672 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_ua AS name, g.price, g.old_price, g.artikul, g.sub_icon_id, g.is_present, si.name_ua 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 (462004) AND g.is_present = '1' AND g.is_active = '1' ORDER BY g.entry, g.is_present DESC [0.00038814544677734 sec]
SELECT DISTINCT ggd2.good_id AS source_good_id, g.id, g.is_present_all_mods, pc.name_ua 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 (462004) ORDER BY ggd2.good_id, g.is_present_all_mods DESC [0.00049805641174316 sec]
SELECT id, name_ua AS name, url FROM pod_filter WHERE id in (2885,11) AND is_active='1' [0.00030803680419922 sec]
SELECT cf.id, cf.info_ua AS info, cf.title_ua AS title, cf.metadesc_ua AS metadesc, cf.seo_text_ua AS seo_text, cf.tagH1_ua AS tagH1, cf.is_active FROM pod_set_cat_filter cf INNER JOIN pod_filter f ON cf.filter_value_id = f.id WHERE cf.cat_id = 103 AND f.id = '2885' LIMIT 1 [0.00032711029052734 sec]
SELECT cf.id, cf.info_ua AS info, cf.title_ua AS title, cf.metadesc_ua AS metadesc, cf.seo_text_ua AS seo_text, cf.tagH1_ua 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 = 103 AND f.url = 'streak' LIMIT 1 [0.0003509521484375 sec]
SELECT id, name_ua AS name, url, entry FROM pod_cat_category WHERE is_active='1' AND is_hidden='0' AND entry='0' AND super_category_id='1' AND id!='103' ORDER BY ordr [0.00060105323791504 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_A_ufn69tago3nc04jbqcnbi5q1eb_6a2ac09bea59a; CREATE TEMPORARY TABLE tmp_A_ufn69tago3nc04jbqcnbi5q1eb_6a2ac09bea59a ( id INT NOT NULL, PRIMARY KEY (id) ) ENGINE=MEMORY; [0.00023794174194336 sec]
INSERT INTO tmp_A_ufn69tago3nc04jbqcnbi5q1eb_6a2ac09bea59a (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 (11) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (2885) WHERE g.cat_id IN (103) 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 (11) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (2885) WHERE dc.dop_cat_id IN (103) 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 (11) INNER JOIN pod_good_filter gf1 ON go.id = gf1.id_good AND gf1.filter_id_value in (2885) WHERE g.cat_id IN (103) 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 (11) INNER JOIN pod_good_filter gf1 ON go.id = gf1.id_good AND gf1.filter_id_value in (2885) WHERE dc.dop_cat_id IN (103) AND go.is_present AND go.is_active AND g.is_present_all_mods AND g.is_active ) A [0.0011718273162842 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_pairs_ufn69tago3nc04jbqcnbi5q1eb_6a2ac09bea59a; CREATE TEMPORARY TABLE tmp_pairs_ufn69tago3nc04jbqcnbi5q1eb_6a2ac09bea59a ( goods_id INT NOT NULL, filter_id INT NOT NULL, PRIMARY KEY (goods_id, filter_id) ) ENGINE=MEMORY; [0.00017595291137695 sec]
INSERT INTO tmp_pairs_ufn69tago3nc04jbqcnbi5q1eb_6a2ac09bea59a (goods_id, filter_id) SELECT DISTINCT A.id AS goods_id, f.id AS filter_id FROM tmp_A_ufn69tago3nc04jbqcnbi5q1eb_6a2ac09bea59a A INNER JOIN pod_good_filter gf ON A.id = gf.id_good AND gf.filter_id_value NOT IN (11,2885) INNER JOIN pod_cat_filter cf ON gf.filter_id = cf.filter_id AND cf.category_id = 103 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.0097689628601074 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_counts_ufn69tago3nc04jbqcnbi5q1eb_6a2ac09bea59a; CREATE TEMPORARY TABLE tmp_counts_ufn69tago3nc04jbqcnbi5q1eb_6a2ac09bea59a ( filter_id INT NOT NULL PRIMARY KEY, count INT NOT NULL ) ENGINE=MEMORY; [0.00025510787963867 sec]
INSERT IGNORE INTO tmp_counts_ufn69tago3nc04jbqcnbi5q1eb_6a2ac09bea59a (filter_id, count) SELECT p.filter_id, COUNT(*) AS count FROM tmp_pairs_ufn69tago3nc04jbqcnbi5q1eb_6a2ac09bea59a p GROUP BY p.filter_id [0.00024104118347168 sec]
SELECT c.filter_id, c.count, f.entry, f.name_ua AS name, f.url, f.ord, fm.name_ua AS mname, fm.url AS murl, fm.ord AS mord FROM tmp_counts_ufn69tago3nc04jbqcnbi5q1eb_6a2ac09bea59a 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.00021505355834961 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_A_ufn69tago3nc04jbqcnbi5q1eb_6a2ac09bea59a [0.00024604797363281 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_pairs_ufn69tago3nc04jbqcnbi5q1eb_6a2ac09bea59a [9.8943710327148E-5 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_counts_ufn69tago3nc04jbqcnbi5q1eb_6a2ac09bea59a [0.00011587142944336 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_A_ufn69tago3nc04jbqcnbi5q1eb_6a2ac09bed9a8; CREATE TEMPORARY TABLE tmp_A_ufn69tago3nc04jbqcnbi5q1eb_6a2ac09bed9a8 ( id INT NOT NULL, entry INT NOT NULL, PRIMARY KEY (id), KEY idx_entry (entry) ) ENGINE=MEMORY; [0.00016498565673828 sec]
INSERT INTO tmp_A_ufn69tago3nc04jbqcnbi5q1eb_6a2ac09bed9a8 (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 (11) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (2885) WHERE g.cat_id IN (103) 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 (11) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (2885) WHERE dc.dop_cat_id IN (103) 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 (11) INNER JOIN pod_good_filter gf1 ON go.id = gf1.id_good AND gf1.filter_id_value in (2885) WHERE g.cat_id IN (103) 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 (11) INNER JOIN pod_good_filter gf1 ON go.id = gf1.id_good AND gf1.filter_id_value in (2885) WHERE dc.dop_cat_id IN (103) AND go.is_present AND go.is_active AND g.is_present_all_mods AND g.is_active ) A [0.001755952835083 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_pairs_ufn69tago3nc04jbqcnbi5q1eb_6a2ac09bed9a8; CREATE TEMPORARY TABLE tmp_pairs_ufn69tago3nc04jbqcnbi5q1eb_6a2ac09bed9a8 ( goods_id INT NOT NULL, filter_id INT NOT NULL, PRIMARY KEY (goods_id, filter_id) ) ENGINE=MEMORY; [0.00024104118347168 sec]
INSERT INTO tmp_pairs_ufn69tago3nc04jbqcnbi5q1eb_6a2ac09bed9a8 (goods_id, filter_id) SELECT DISTINCT A.entry AS goods_id, f.id AS filter_id FROM tmp_A_ufn69tago3nc04jbqcnbi5q1eb_6a2ac09bed9a8 A INNER JOIN pod_good_filter gf ON A.id = gf.id_good AND gf.filter_id_value NOT IN (11,2885) INNER JOIN pod_cat_filter cf ON gf.filter_id = cf.filter_id AND cf.category_id = 103 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.00039005279541016 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_counts_ufn69tago3nc04jbqcnbi5q1eb_6a2ac09bed9a8; CREATE TEMPORARY TABLE tmp_counts_ufn69tago3nc04jbqcnbi5q1eb_6a2ac09bed9a8 ( filter_id INT NOT NULL PRIMARY KEY, count INT NOT NULL ) ENGINE=MEMORY; [0.00018119812011719 sec]
INSERT IGNORE INTO tmp_counts_ufn69tago3nc04jbqcnbi5q1eb_6a2ac09bed9a8 (filter_id, count) SELECT p.filter_id, COUNT(*) AS count FROM tmp_pairs_ufn69tago3nc04jbqcnbi5q1eb_6a2ac09bed9a8 p GROUP BY p.filter_id [0.0001220703125 sec]
SELECT c.filter_id, c.count, f.entry, f.name_ua AS name, f.url, f.ord, fm.name_ua AS mname, fm.url AS murl, fm.ord AS mord FROM tmp_counts_ufn69tago3nc04jbqcnbi5q1eb_6a2ac09bed9a8 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.00022792816162109 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_A_ufn69tago3nc04jbqcnbi5q1eb_6a2ac09bed9a8 [0.00018405914306641 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_pairs_ufn69tago3nc04jbqcnbi5q1eb_6a2ac09bed9a8 [9.5129013061523E-5 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_counts_ufn69tago3nc04jbqcnbi5q1eb_6a2ac09bed9a8 [7.7009201049805E-5 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_A_ufn69tago3nc04jbqcnbi5q1eb_6a2ac09beeb44; CREATE TEMPORARY TABLE tmp_A_ufn69tago3nc04jbqcnbi5q1eb_6a2ac09beeb44 ( id INT NOT NULL, PRIMARY KEY (id) ) ENGINE=MEMORY; [0.00012779235839844 sec]
INSERT INTO tmp_A_ufn69tago3nc04jbqcnbi5q1eb_6a2ac09beeb44 (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 (2885) WHERE g.cat_id IN (103) 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 (2885) WHERE dc.dop_cat_id IN (103) 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 (2885) WHERE g.cat_id IN (103) 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 (2885) WHERE dc.dop_cat_id IN (103) AND go.is_present AND go.is_active AND g.is_present_all_mods AND g.is_active ) A [0.0032970905303955 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_pairs_ufn69tago3nc04jbqcnbi5q1eb_6a2ac09beeb44; CREATE TEMPORARY TABLE tmp_pairs_ufn69tago3nc04jbqcnbi5q1eb_6a2ac09beeb44 ( goods_id INT NOT NULL, filter_id INT NOT NULL, PRIMARY KEY (goods_id, filter_id) ) ENGINE=MEMORY; [0.00015115737915039 sec]
INSERT INTO tmp_pairs_ufn69tago3nc04jbqcnbi5q1eb_6a2ac09beeb44 (goods_id, filter_id) SELECT DISTINCT A.id AS goods_id, f.id AS filter_id FROM tmp_A_ufn69tago3nc04jbqcnbi5q1eb_6a2ac09beeb44 A INNER JOIN pod_good_filter gf ON A.id = gf.id_good AND gf.filter_id = 8 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.0087568759918213 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_counts_ufn69tago3nc04jbqcnbi5q1eb_6a2ac09beeb44; CREATE TEMPORARY TABLE tmp_counts_ufn69tago3nc04jbqcnbi5q1eb_6a2ac09beeb44 ( filter_id INT NOT NULL PRIMARY KEY, count INT NOT NULL ) ENGINE=MEMORY; [0.00019097328186035 sec]
INSERT INTO tmp_counts_ufn69tago3nc04jbqcnbi5q1eb_6a2ac09beeb44 (filter_id, count) SELECT p.filter_id, COUNT(*) AS count FROM tmp_pairs_ufn69tago3nc04jbqcnbi5q1eb_6a2ac09beeb44 p GROUP BY p.filter_id [0.00024700164794922 sec]
INSERT IGNORE INTO tmp_counts_ufn69tago3nc04jbqcnbi5q1eb_6a2ac09beeb44 (filter_id, count) SELECT pf.id, 0 FROM pod_filter pf LEFT JOIN tmp_counts_ufn69tago3nc04jbqcnbi5q1eb_6a2ac09beeb44 c ON c.filter_id = pf.id WHERE pf.id in (11) AND c.filter_id IS NULL [0.00015401840209961 sec]
SELECT c.filter_id, c.count, f.entry, f.name_ua AS name, f.url, f.ord, fm.name_ua AS mname, fm.url AS murl, fm.ord AS mord FROM tmp_counts_ufn69tago3nc04jbqcnbi5q1eb_6a2ac09beeb44 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.00019216537475586 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_A_ufn69tago3nc04jbqcnbi5q1eb_6a2ac09beeb44 [0.00014495849609375 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_pairs_ufn69tago3nc04jbqcnbi5q1eb_6a2ac09beeb44 [6.6041946411133E-5 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_counts_ufn69tago3nc04jbqcnbi5q1eb_6a2ac09beeb44 [6.3896179199219E-5 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_A_ufn69tago3nc04jbqcnbi5q1eb_6a2ac09bf2395; CREATE TEMPORARY TABLE tmp_A_ufn69tago3nc04jbqcnbi5q1eb_6a2ac09bf2395 ( id INT NOT NULL, entry INT NOT NULL, PRIMARY KEY (id), KEY idx_entry (entry) ) ENGINE=MEMORY [0.00016188621520996 sec]
INSERT INTO tmp_A_ufn69tago3nc04jbqcnbi5q1eb_6a2ac09bf2395 (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 (11) WHERE g.cat_id IN (103) 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 (11) WHERE dc.dop_cat_id IN (103) 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 (11) WHERE g.cat_id IN (103) 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 (11) WHERE dc.dop_cat_id IN (103) AND go.is_present AND go.is_active AND g.is_present_all_mods AND g.is_active ) A [0.0035099983215332 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_pairs_ufn69tago3nc04jbqcnbi5q1eb_6a2ac09bf2395; CREATE TEMPORARY TABLE tmp_pairs_ufn69tago3nc04jbqcnbi5q1eb_6a2ac09bf2395 ( goods_id INT NOT NULL, filter_id INT NOT NULL, PRIMARY KEY (goods_id, filter_id) ) ENGINE=MEMORY [0.00019216537475586 sec]
INSERT INTO tmp_pairs_ufn69tago3nc04jbqcnbi5q1eb_6a2ac09bf2395 (goods_id, filter_id) SELECT DISTINCT A.entry AS goods_id, f.id AS filter_id FROM tmp_A_ufn69tago3nc04jbqcnbi5q1eb_6a2ac09bf2395 A INNER JOIN pod_good_filter gf ON A.id = gf.id_good AND gf.filter_id = 2883 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.0053930282592773 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_counts_ufn69tago3nc04jbqcnbi5q1eb_6a2ac09bf2395; CREATE TEMPORARY TABLE tmp_counts_ufn69tago3nc04jbqcnbi5q1eb_6a2ac09bf2395 ( filter_id INT NOT NULL PRIMARY KEY, count INT NOT NULL ) ENGINE=MEMORY [0.00020718574523926 sec]
INSERT INTO tmp_counts_ufn69tago3nc04jbqcnbi5q1eb_6a2ac09bf2395 (filter_id, count) SELECT p.filter_id, COUNT(*) AS count FROM tmp_pairs_ufn69tago3nc04jbqcnbi5q1eb_6a2ac09bf2395 p GROUP BY p.filter_id [0.00015592575073242 sec]
INSERT INTO tmp_counts_ufn69tago3nc04jbqcnbi5q1eb_6a2ac09bf2395 (filter_id, count) SELECT pf.id, 0 FROM pod_filter pf LEFT JOIN tmp_counts_ufn69tago3nc04jbqcnbi5q1eb_6a2ac09bf2395 c ON c.filter_id = pf.id WHERE pf.id in (2885) AND c.filter_id IS NULL [0.00015091896057129 sec]
SELECT c.filter_id, c.count, f.entry, f.name_ua AS name, f.url, f.ord, fm.name_ua AS mname, fm.url AS murl, fm.ord AS mord FROM tmp_counts_ufn69tago3nc04jbqcnbi5q1eb_6a2ac09bf2395 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.0001671314239502 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_A_ufn69tago3nc04jbqcnbi5q1eb_6a2ac09bf2395 [0.00013017654418945 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_pairs_ufn69tago3nc04jbqcnbi5q1eb_6a2ac09bf2395 [6.5088272094727E-5 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_counts_ufn69tago3nc04jbqcnbi5q1eb_6a2ac09bf2395 [8.2015991210938E-5 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_A_ufn69tago3nc04jbqcnbi5q1eb_6a2ac09c00bff; CREATE TEMPORARY TABLE tmp_A_ufn69tago3nc04jbqcnbi5q1eb_6a2ac09c00bff ( entry INT NOT NULL, sub_icon_id INT NOT NULL, PRIMARY KEY (entry, sub_icon_id) ) ENGINE=MEMORY; [0.00017499923706055 sec]
INSERT IGNORE INTO tmp_A_ufn69tago3nc04jbqcnbi5q1eb_6a2ac09c00bff (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 (11) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (2885) WHERE g.cat_id IN (103) 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 (11) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (2885) WHERE dc.dop_cat_id IN (103) 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 (11) INNER JOIN pod_good_filter gf1 ON go.id = gf1.id_good AND gf1.filter_id_value in (2885) WHERE g.cat_id IN (103) 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 (11) INNER JOIN pod_good_filter gf1 ON go.id = gf1.id_good AND gf1.filter_id_value in (2885) WHERE dc.dop_cat_id IN (103) AND go.is_present AND go.is_active AND g.is_present_all_mods AND g.is_active ) A [0.0064120292663574 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_counts_ufn69tago3nc04jbqcnbi5q1eb_6a2ac09c00bff; CREATE TEMPORARY TABLE tmp_counts_ufn69tago3nc04jbqcnbi5q1eb_6a2ac09c00bff ( sub_icon_id INT NOT NULL PRIMARY KEY, count INT NOT NULL ) ENGINE=MEMORY; [0.00029206275939941 sec]
INSERT IGNORE INTO tmp_counts_ufn69tago3nc04jbqcnbi5q1eb_6a2ac09c00bff (sub_icon_id, count) SELECT sub_icon_id, COUNT(DISTINCT entry) AS count FROM ( SELECT A.entry, A.sub_icon_id FROM tmp_A_ufn69tago3nc04jbqcnbi5q1eb_6a2ac09c00bff 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.00028800964355469 sec]
SELECT c.sub_icon_id AS id, c.count, si.entry, si.name_ua AS name, si.url FROM tmp_counts_ufn69tago3nc04jbqcnbi5q1eb_6a2ac09c00bff 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.00032210350036621 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_A_ufn69tago3nc04jbqcnbi5q1eb_6a2ac09c00bff [0.00017094612121582 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_counts_ufn69tago3nc04jbqcnbi5q1eb_6a2ac09c00bff [0.00011682510375977 sec]
Тенсел постільна білизна - купити постільну білизну з тенсела Смужка, наволочки 50х70 см в Україні, ціна в каталозі інтернет магазину Podushka.com.ua

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

ПЕРЕЙТИ

Тенсел постільна білизна : смужка, наволочки 50х70 см