SELECT url_to, r404 FROM pod_redirect WHERE BINARY REPLACE(url_from,'/ru/','/') = '/kofty_dlya_devochek/gray-o_4-akril-provans.html' LIMIT 0,1 [0.0011990070343018 sec]
SELECT pod_filter.id,pod_filter.url FROM pod_filter WHERE BINARY pod_filter.url IN ('gray','o_4','akril','provans') order by url [0.0015180110931396 sec]
SELECT pod_sub_icon.id,pod_sub_icon.url FROM pod_sub_icon WHERE BINARY pod_sub_icon.url IN ('gray','o_4','akril','provans') order by url [0.001183032989502 sec]
select id,url from pod_cat_brand where BINARY url IN ('gray','o_4','akril','provans') [0.0016748905181885 sec]
SELECT id, url FROM pod_filter WHERE url IN ('gray','o_4','akril','provans') [0.00047612190246582 sec]
SELECT id, url FROM pod_sub_icon WHERE url IN ('gray','o_4','akril','provans') [0.00052714347839355 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 (682,32,362) and f.is_active AND mf.is_active ORDER BY mf.id, f.id [0.00024700164794922 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 (32) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (682) INNER JOIN pod_good_filter gf2 ON g.id = gf2.id_good AND gf2.filter_id_value in (362) WHERE g.cat_id IN (347) AND g.brand_id IN (578) 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 (32) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (682) INNER JOIN pod_good_filter gf2 ON g.id = gf2.id_good AND gf2.filter_id_value in (362) WHERE dc.dop_cat_id IN (347) AND g.brand_id IN (578) 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 (32) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (682) INNER JOIN pod_good_filter gf2 ON go.id = gf2.id_good AND gf2.filter_id_value in (362) WHERE g.cat_id IN (347) AND g.brand_id IN (578) 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 (32) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (682) INNER JOIN pod_good_filter gf2 ON go.id = gf2.id_good AND gf2.filter_id_value in (362) WHERE dc.dop_cat_id IN (347) AND g.brand_id IN (578) AND go.is_present AND go.is_active AND g.is_present_all_mods AND g.is_active [0.024194002151489 sec]
CREATE TEMPORARY TABLE temp_brand_counts_6a2ac090197b9 ( id INT, gid INT, INDEX idx_id (id), INDEX idx_gid (gid) ) [0.0013790130615234 sec]
INSERT INTO temp_brand_counts_6a2ac090197b9 (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 (32) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (682) INNER JOIN pod_good_filter gf2 ON g.id = gf2.id_good AND gf2.filter_id_value in (362) 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 (32) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (682) INNER JOIN pod_good_filter gf2 ON g.id = gf2.id_good AND gf2.filter_id_value in (362) 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 (32) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (682) INNER JOIN pod_good_filter gf2 ON go.id = gf2.id_good AND gf2.filter_id_value in (362) 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 (32) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (682) INNER JOIN pod_good_filter gf2 ON go.id = gf2.id_good AND gf2.filter_id_value in (362) 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 UNION SELECT id, null gid FROM pod_cat_category WHERE id in (578) [0.014956951141357 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_6a2ac090197b9 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.0003819465637207 sec]
DROP TEMPORARY TABLE IF EXISTS temp_brand_counts_6a2ac090197b9 [9.4175338745117E-5 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 (32) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (682) INNER JOIN pod_good_filter gf2 ON g.id = gf2.id_good AND gf2.filter_id_value in (362) WHERE g.cat_id IN (347) AND g.brand_id IN (578) 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 (32) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (682) INNER JOIN pod_good_filter gf2 ON g.id = gf2.id_good AND gf2.filter_id_value in (362) WHERE dc.dop_cat_id IN (347) AND g.brand_id IN (578) 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 (32) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (682) INNER JOIN pod_good_filter gf2 ON go.id = gf2.id_good AND gf2.filter_id_value in (362) WHERE g.cat_id IN (347) AND g.brand_id IN (578) 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 (32) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (682) INNER JOIN pod_good_filter gf2 ON go.id = gf2.id_good AND gf2.filter_id_value in (362) WHERE dc.dop_cat_id IN (347) AND g.brand_id IN (578) AND go.is_present AND go.is_active AND g.is_present_all_mods AND g.is_active ) A [0.0011959075927734 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 >= '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 (322429) GROUP BY g.id ORDER BY g.ordr desc [0.0012450218200684 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_A_ufn69tago3nc04jbqcnbi5q1eb_6a2ac0901fb19; CREATE TEMPORARY TABLE tmp_A_ufn69tago3nc04jbqcnbi5q1eb_6a2ac0901fb19 ( id INT NOT NULL, PRIMARY KEY (id) ) ENGINE=MEMORY; [0.00020289421081543 sec]
INSERT INTO tmp_A_ufn69tago3nc04jbqcnbi5q1eb_6a2ac0901fb19 (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 (32) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (682) INNER JOIN pod_good_filter gf2 ON g.id = gf2.id_good AND gf2.filter_id_value in (362) WHERE g.cat_id IN (347) AND g.brand_id IN (578) 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 (32) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (682) INNER JOIN pod_good_filter gf2 ON g.id = gf2.id_good AND gf2.filter_id_value in (362) WHERE dc.dop_cat_id IN (347) AND g.brand_id IN (578) 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 (32) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (682) INNER JOIN pod_good_filter gf2 ON go.id = gf2.id_good AND gf2.filter_id_value in (362) WHERE g.cat_id IN (347) AND g.brand_id IN (578) 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 (32) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (682) INNER JOIN pod_good_filter gf2 ON go.id = gf2.id_good AND gf2.filter_id_value in (362) WHERE dc.dop_cat_id IN (347) AND g.brand_id IN (578) AND go.is_present AND go.is_active AND g.is_present_all_mods AND g.is_active ) A [0.001349925994873 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_pairs_ufn69tago3nc04jbqcnbi5q1eb_6a2ac0901fb19; CREATE TEMPORARY TABLE tmp_pairs_ufn69tago3nc04jbqcnbi5q1eb_6a2ac0901fb19 ( goods_id INT NOT NULL, filter_id INT NOT NULL, PRIMARY KEY (goods_id, filter_id) ) ENGINE=MEMORY; [0.00019097328186035 sec]
INSERT INTO tmp_pairs_ufn69tago3nc04jbqcnbi5q1eb_6a2ac0901fb19 (goods_id, filter_id) SELECT DISTINCT A.id AS goods_id, f.id AS filter_id FROM tmp_A_ufn69tago3nc04jbqcnbi5q1eb_6a2ac0901fb19 A INNER JOIN pod_good_filter gf ON A.id = gf.id_good AND gf.filter_id_value NOT IN (32,682,362) 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.013149976730347 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_counts_ufn69tago3nc04jbqcnbi5q1eb_6a2ac0901fb19; CREATE TEMPORARY TABLE tmp_counts_ufn69tago3nc04jbqcnbi5q1eb_6a2ac0901fb19 ( filter_id INT NOT NULL PRIMARY KEY, count INT NOT NULL ) ENGINE=MEMORY; [0.00020313262939453 sec]
INSERT IGNORE INTO tmp_counts_ufn69tago3nc04jbqcnbi5q1eb_6a2ac0901fb19 (filter_id, count) SELECT p.filter_id, COUNT(*) AS count FROM tmp_pairs_ufn69tago3nc04jbqcnbi5q1eb_6a2ac0901fb19 p GROUP BY p.filter_id [0.00023794174194336 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_6a2ac0901fb19 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.00017499923706055 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_A_ufn69tago3nc04jbqcnbi5q1eb_6a2ac0901fb19 [0.00013995170593262 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_pairs_ufn69tago3nc04jbqcnbi5q1eb_6a2ac0901fb19 [6.2942504882812E-5 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_counts_ufn69tago3nc04jbqcnbi5q1eb_6a2ac0901fb19 [5.6028366088867E-5 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_A_ufn69tago3nc04jbqcnbi5q1eb_6a2ac09023b72; CREATE TEMPORARY TABLE tmp_A_ufn69tago3nc04jbqcnbi5q1eb_6a2ac09023b72 ( id INT NOT NULL, entry INT NOT NULL, PRIMARY KEY (id), KEY idx_entry (entry) ) ENGINE=MEMORY; [0.00018596649169922 sec]
INSERT INTO tmp_A_ufn69tago3nc04jbqcnbi5q1eb_6a2ac09023b72 (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 (32) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (682) INNER JOIN pod_good_filter gf2 ON g.id = gf2.id_good AND gf2.filter_id_value in (362) WHERE g.cat_id IN (347) AND g.brand_id IN (578) 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 (32) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (682) INNER JOIN pod_good_filter gf2 ON g.id = gf2.id_good AND gf2.filter_id_value in (362) WHERE dc.dop_cat_id IN (347) AND g.brand_id IN (578) 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 (32) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (682) INNER JOIN pod_good_filter gf2 ON go.id = gf2.id_good AND gf2.filter_id_value in (362) WHERE g.cat_id IN (347) AND g.brand_id IN (578) 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 (32) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (682) INNER JOIN pod_good_filter gf2 ON go.id = gf2.id_good AND gf2.filter_id_value in (362) WHERE dc.dop_cat_id IN (347) AND g.brand_id IN (578) AND go.is_present AND go.is_active AND g.is_present_all_mods AND g.is_active ) A [0.0020310878753662 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_pairs_ufn69tago3nc04jbqcnbi5q1eb_6a2ac09023b72; CREATE TEMPORARY TABLE tmp_pairs_ufn69tago3nc04jbqcnbi5q1eb_6a2ac09023b72 ( goods_id INT NOT NULL, filter_id INT NOT NULL, PRIMARY KEY (goods_id, filter_id) ) ENGINE=MEMORY; [0.00023198127746582 sec]
INSERT INTO tmp_pairs_ufn69tago3nc04jbqcnbi5q1eb_6a2ac09023b72 (goods_id, filter_id) SELECT DISTINCT A.entry AS goods_id, f.id AS filter_id FROM tmp_A_ufn69tago3nc04jbqcnbi5q1eb_6a2ac09023b72 A INNER JOIN pod_good_filter gf ON A.id = gf.id_good AND gf.filter_id_value NOT IN (32,682,362) 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.0010809898376465 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_counts_ufn69tago3nc04jbqcnbi5q1eb_6a2ac09023b72; CREATE TEMPORARY TABLE tmp_counts_ufn69tago3nc04jbqcnbi5q1eb_6a2ac09023b72 ( filter_id INT NOT NULL PRIMARY KEY, count INT NOT NULL ) ENGINE=MEMORY; [0.00027894973754883 sec]
INSERT IGNORE INTO tmp_counts_ufn69tago3nc04jbqcnbi5q1eb_6a2ac09023b72 (filter_id, count) SELECT p.filter_id, COUNT(*) AS count FROM tmp_pairs_ufn69tago3nc04jbqcnbi5q1eb_6a2ac09023b72 p GROUP BY p.filter_id [0.00019001960754395 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_6a2ac09023b72 c INNER JOIN pod_filter f ON c.filter_id = f.id INNER JOIN pod_filter fm ON f.entry = fm.id ORDER BY fm.ord DESC, f.ord DESC, c.filter_id [0.0001990795135498 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_A_ufn69tago3nc04jbqcnbi5q1eb_6a2ac09023b72 [0.00017714500427246 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_pairs_ufn69tago3nc04jbqcnbi5q1eb_6a2ac09023b72 [0.00011301040649414 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_counts_ufn69tago3nc04jbqcnbi5q1eb_6a2ac09023b72 [9.0837478637695E-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 (682,362) and f.is_active AND mf.is_active ORDER BY mf.id, f.id [0.00034809112548828 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_A_ufn69tago3nc04jbqcnbi5q1eb_6a2ac09025691; CREATE TEMPORARY TABLE tmp_A_ufn69tago3nc04jbqcnbi5q1eb_6a2ac09025691 ( id INT NOT NULL, PRIMARY KEY (id) ) ENGINE=MEMORY; [0.00025200843811035 sec]
INSERT INTO tmp_A_ufn69tago3nc04jbqcnbi5q1eb_6a2ac09025691 (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 (682) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (362) WHERE g.cat_id IN (347) AND g.brand_id IN (578) 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 (682) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (362) WHERE dc.dop_cat_id IN (347) AND g.brand_id IN (578) 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 (682) INNER JOIN pod_good_filter gf1 ON go.id = gf1.id_good AND gf1.filter_id_value in (362) WHERE g.cat_id IN (347) AND g.brand_id IN (578) 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 (682) INNER JOIN pod_good_filter gf1 ON go.id = gf1.id_good AND gf1.filter_id_value in (362) WHERE dc.dop_cat_id IN (347) AND g.brand_id IN (578) AND go.is_present AND go.is_active AND g.is_present_all_mods AND g.is_active ) A [0.0043740272521973 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_pairs_ufn69tago3nc04jbqcnbi5q1eb_6a2ac09025691; CREATE TEMPORARY TABLE tmp_pairs_ufn69tago3nc04jbqcnbi5q1eb_6a2ac09025691 ( goods_id INT NOT NULL, filter_id INT NOT NULL, PRIMARY KEY (goods_id, filter_id) ) ENGINE=MEMORY; [0.00039887428283691 sec]
INSERT INTO tmp_pairs_ufn69tago3nc04jbqcnbi5q1eb_6a2ac09025691 (goods_id, filter_id) SELECT DISTINCT A.id AS goods_id, f.id AS filter_id FROM tmp_A_ufn69tago3nc04jbqcnbi5q1eb_6a2ac09025691 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.0014510154724121 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_counts_ufn69tago3nc04jbqcnbi5q1eb_6a2ac09025691; CREATE TEMPORARY TABLE tmp_counts_ufn69tago3nc04jbqcnbi5q1eb_6a2ac09025691 ( filter_id INT NOT NULL PRIMARY KEY, count INT NOT NULL ) ENGINE=MEMORY; [0.0002598762512207 sec]
INSERT INTO tmp_counts_ufn69tago3nc04jbqcnbi5q1eb_6a2ac09025691 (filter_id, count) SELECT p.filter_id, COUNT(*) AS count FROM tmp_pairs_ufn69tago3nc04jbqcnbi5q1eb_6a2ac09025691 p GROUP BY p.filter_id [0.00021505355834961 sec]
INSERT IGNORE INTO tmp_counts_ufn69tago3nc04jbqcnbi5q1eb_6a2ac09025691 (filter_id, count) SELECT pf.id, 0 FROM pod_filter pf LEFT JOIN tmp_counts_ufn69tago3nc04jbqcnbi5q1eb_6a2ac09025691 c ON c.filter_id = pf.id WHERE pf.id in (32) AND c.filter_id IS NULL [0.00020909309387207 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_6a2ac09025691 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.00028800964355469 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_A_ufn69tago3nc04jbqcnbi5q1eb_6a2ac09025691 [0.00024604797363281 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_pairs_ufn69tago3nc04jbqcnbi5q1eb_6a2ac09025691 [0.00011181831359863 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_counts_ufn69tago3nc04jbqcnbi5q1eb_6a2ac09025691 [0.0001070499420166 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_A_ufn69tago3nc04jbqcnbi5q1eb_6a2ac09027c18; CREATE TEMPORARY TABLE tmp_A_ufn69tago3nc04jbqcnbi5q1eb_6a2ac09027c18 ( id INT NOT NULL, PRIMARY KEY (id) ) ENGINE=MEMORY; [0.00014305114746094 sec]
INSERT INTO tmp_A_ufn69tago3nc04jbqcnbi5q1eb_6a2ac09027c18 (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 (32) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (362) WHERE g.cat_id IN (347) AND g.brand_id IN (578) 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 (32) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (362) WHERE dc.dop_cat_id IN (347) AND g.brand_id IN (578) 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 (32) INNER JOIN pod_good_filter gf1 ON go.id = gf1.id_good AND gf1.filter_id_value in (362) WHERE g.cat_id IN (347) AND g.brand_id IN (578) 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 (32) INNER JOIN pod_good_filter gf1 ON go.id = gf1.id_good AND gf1.filter_id_value in (362) WHERE dc.dop_cat_id IN (347) AND g.brand_id IN (578) AND go.is_present AND go.is_active AND g.is_present_all_mods AND g.is_active ) A [0.0016679763793945 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_pairs_ufn69tago3nc04jbqcnbi5q1eb_6a2ac09027c18; CREATE TEMPORARY TABLE tmp_pairs_ufn69tago3nc04jbqcnbi5q1eb_6a2ac09027c18 ( goods_id INT NOT NULL, filter_id INT NOT NULL, PRIMARY KEY (goods_id, filter_id) ) ENGINE=MEMORY; [0.0002138614654541 sec]
INSERT INTO tmp_pairs_ufn69tago3nc04jbqcnbi5q1eb_6a2ac09027c18 (goods_id, filter_id) SELECT DISTINCT A.id AS goods_id, f.id AS filter_id FROM tmp_A_ufn69tago3nc04jbqcnbi5q1eb_6a2ac09027c18 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.0023119449615479 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_counts_ufn69tago3nc04jbqcnbi5q1eb_6a2ac09027c18; CREATE TEMPORARY TABLE tmp_counts_ufn69tago3nc04jbqcnbi5q1eb_6a2ac09027c18 ( filter_id INT NOT NULL PRIMARY KEY, count INT NOT NULL ) ENGINE=MEMORY; [0.00042009353637695 sec]
INSERT INTO tmp_counts_ufn69tago3nc04jbqcnbi5q1eb_6a2ac09027c18 (filter_id, count) SELECT p.filter_id, COUNT(*) AS count FROM tmp_pairs_ufn69tago3nc04jbqcnbi5q1eb_6a2ac09027c18 p GROUP BY p.filter_id [0.00029587745666504 sec]
INSERT IGNORE INTO tmp_counts_ufn69tago3nc04jbqcnbi5q1eb_6a2ac09027c18 (filter_id, count) SELECT pf.id, 0 FROM pod_filter pf LEFT JOIN tmp_counts_ufn69tago3nc04jbqcnbi5q1eb_6a2ac09027c18 c ON c.filter_id = pf.id WHERE pf.id in (682) AND c.filter_id IS NULL [0.00023889541625977 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_6a2ac09027c18 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.00029301643371582 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_A_ufn69tago3nc04jbqcnbi5q1eb_6a2ac09027c18 [0.0002439022064209 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_pairs_ufn69tago3nc04jbqcnbi5q1eb_6a2ac09027c18 [0.00011610984802246 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_counts_ufn69tago3nc04jbqcnbi5q1eb_6a2ac09027c18 [0.00011014938354492 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 (682,32) and f.is_active AND mf.is_active ORDER BY mf.id, f.id [0.00026679039001465 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_A_ufn69tago3nc04jbqcnbi5q1eb_6a2ac09029c01; CREATE TEMPORARY TABLE tmp_A_ufn69tago3nc04jbqcnbi5q1eb_6a2ac09029c01 ( id INT NOT NULL, entry INT NOT NULL, PRIMARY KEY (id), KEY idx_entry (entry) ) ENGINE=MEMORY [0.00023078918457031 sec]
INSERT INTO tmp_A_ufn69tago3nc04jbqcnbi5q1eb_6a2ac09029c01 (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 (32) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (682) WHERE g.cat_id IN (347) AND g.brand_id IN (578) 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 (32) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (682) WHERE dc.dop_cat_id IN (347) AND g.brand_id IN (578) 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 (32) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (682) WHERE g.cat_id IN (347) AND g.brand_id IN (578) 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 (32) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (682) WHERE dc.dop_cat_id IN (347) AND g.brand_id IN (578) AND go.is_present AND go.is_active AND g.is_present_all_mods AND g.is_active ) A [0.0065279006958008 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_pairs_ufn69tago3nc04jbqcnbi5q1eb_6a2ac09029c01; CREATE TEMPORARY TABLE tmp_pairs_ufn69tago3nc04jbqcnbi5q1eb_6a2ac09029c01 ( goods_id INT NOT NULL, filter_id INT NOT NULL, PRIMARY KEY (goods_id, filter_id) ) ENGINE=MEMORY [0.00040006637573242 sec]
INSERT INTO tmp_pairs_ufn69tago3nc04jbqcnbi5q1eb_6a2ac09029c01 (goods_id, filter_id) SELECT DISTINCT A.entry AS goods_id, f.id AS filter_id FROM tmp_A_ufn69tago3nc04jbqcnbi5q1eb_6a2ac09029c01 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.0027198791503906 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_counts_ufn69tago3nc04jbqcnbi5q1eb_6a2ac09029c01; CREATE TEMPORARY TABLE tmp_counts_ufn69tago3nc04jbqcnbi5q1eb_6a2ac09029c01 ( filter_id INT NOT NULL PRIMARY KEY, count INT NOT NULL ) ENGINE=MEMORY [0.00039482116699219 sec]
INSERT INTO tmp_counts_ufn69tago3nc04jbqcnbi5q1eb_6a2ac09029c01 (filter_id, count) SELECT p.filter_id, COUNT(*) AS count FROM tmp_pairs_ufn69tago3nc04jbqcnbi5q1eb_6a2ac09029c01 p GROUP BY p.filter_id [0.00037908554077148 sec]
INSERT INTO tmp_counts_ufn69tago3nc04jbqcnbi5q1eb_6a2ac09029c01 (filter_id, count) SELECT pf.id, 0 FROM pod_filter pf LEFT JOIN tmp_counts_ufn69tago3nc04jbqcnbi5q1eb_6a2ac09029c01 c ON c.filter_id = pf.id WHERE pf.id in (362) AND c.filter_id IS NULL [0.00029110908508301 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_6a2ac09029c01 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.00042605400085449 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_A_ufn69tago3nc04jbqcnbi5q1eb_6a2ac09029c01 [0.00026702880859375 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_pairs_ufn69tago3nc04jbqcnbi5q1eb_6a2ac09029c01 [0.0001981258392334 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_counts_ufn69tago3nc04jbqcnbi5q1eb_6a2ac09029c01 [0.00016307830810547 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_A_ufn69tago3nc04jbqcnbi5q1eb_6a2ac0902cfbf; CREATE TEMPORARY TABLE tmp_A_ufn69tago3nc04jbqcnbi5q1eb_6a2ac0902cfbf ( entry INT NOT NULL, sub_icon_id INT NOT NULL, PRIMARY KEY (entry, sub_icon_id) ) ENGINE=MEMORY; [0.00027108192443848 sec]
INSERT IGNORE INTO tmp_A_ufn69tago3nc04jbqcnbi5q1eb_6a2ac0902cfbf (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 (32) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (682) INNER JOIN pod_good_filter gf2 ON g.id = gf2.id_good AND gf2.filter_id_value in (362) WHERE g.cat_id IN (347) AND g.brand_id IN (578) 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 (32) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (682) INNER JOIN pod_good_filter gf2 ON g.id = gf2.id_good AND gf2.filter_id_value in (362) WHERE dc.dop_cat_id IN (347) AND g.brand_id IN (578) 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 (32) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (682) INNER JOIN pod_good_filter gf2 ON go.id = gf2.id_good AND gf2.filter_id_value in (362) WHERE g.cat_id IN (347) AND g.brand_id IN (578) 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 (32) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (682) INNER JOIN pod_good_filter gf2 ON go.id = gf2.id_good AND gf2.filter_id_value in (362) WHERE dc.dop_cat_id IN (347) AND g.brand_id IN (578) AND go.is_present AND go.is_active AND g.is_present_all_mods AND g.is_active ) A [0.004295825958252 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_counts_ufn69tago3nc04jbqcnbi5q1eb_6a2ac0902cfbf; CREATE TEMPORARY TABLE tmp_counts_ufn69tago3nc04jbqcnbi5q1eb_6a2ac0902cfbf ( sub_icon_id INT NOT NULL PRIMARY KEY, count INT NOT NULL ) ENGINE=MEMORY; [0.00031399726867676 sec]
INSERT IGNORE INTO tmp_counts_ufn69tago3nc04jbqcnbi5q1eb_6a2ac0902cfbf (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_6a2ac0902cfbf 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.00040006637573242 sec]
SELECT c.sub_icon_id AS id, c.count, si.entry, si.name_ua AS name, si.url FROM tmp_counts_ufn69tago3nc04jbqcnbi5q1eb_6a2ac0902cfbf 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.00023508071899414 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_A_ufn69tago3nc04jbqcnbi5q1eb_6a2ac0902cfbf [0.00022411346435547 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_counts_ufn69tago3nc04jbqcnbi5q1eb_6a2ac0902cfbf [0.00019001960754395 sec]
Низькі ціни на Кофти та светри для дівчаток Прованс (Прoвaнс) в інтернет-магазині «Подушка». Купити Кофти та светри для дівчаток Прованс в Києві і Україні

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

ПЕРЕЙТИ

Кофти та светри для дівчаток Прованс