SELECT url_to, r404 FROM pod_redirect WHERE BINARY REPLACE(url_from,'/ru/','/') = '/pledy/green-gray-turquoise-diva.html' LIMIT 0,1 [0.00087499618530273 sec]
SELECT pod_filter.id,pod_filter.url FROM pod_filter WHERE BINARY pod_filter.url IN ('green','gray','turquoise','diva') order by url [0.0016140937805176 sec]
SELECT pod_sub_icon.id,pod_sub_icon.url FROM pod_sub_icon WHERE BINARY pod_sub_icon.url IN ('green','gray','turquoise','diva') order by url [0.0010039806365967 sec]
select id,url from pod_cat_brand where BINARY url IN ('green','gray','turquoise','diva') [0.0016789436340332 sec]
SELECT cb.metaindex, cb.metafollow FROM pod_set_cat_brand cb INNER JOIN pod_cat_category c ON cb.cat_id = c.id WHERE c.url = 'pledy' AND cb.brand_id = 2134 AND cb.is_active = 1 LIMIT 1 [0.00060606002807617 sec]
SELECT id, url FROM pod_filter WHERE url IN ('green','gray','turquoise','diva') [0.0004570484161377 sec]
SELECT id, url FROM pod_sub_icon WHERE url IN ('green','gray','turquoise','diva') [0.00097107887268066 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,30,117) and f.is_active AND mf.is_active ORDER BY mf.id, f.id [0.00046396255493164 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 (30,32,117) WHERE g.cat_id IN (11,33,55,61,84,94,101,163,162,206,212,290,291,328,59,60,2380,571,194,295,317,542) AND g.brand_id IN (2134) 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 (30,32,117) WHERE dc.dop_cat_id IN (11,33,55,61,84,94,101,163,162,206,212,290,291,328,59,60,2380,571,194,295,317,542) AND g.brand_id IN (2134) AND g.is_present_all_mods AND g.entry =0 AND g.is_active [0.045413970947266 sec]
CREATE TEMPORARY TABLE temp_brand_counts_6a2aa2a542675 ( id INT, gid INT, INDEX idx_id (id), INDEX idx_gid (gid) ) [0.00045394897460938 sec]
INSERT INTO temp_brand_counts_6a2aa2a542675 (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 (30,32,117) WHERE g.cat_id IN (11,33,55,61,84,94,101,163,162,206,212,290,291,328,59,60,2380,571,194,295,317,542) 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 (30,32,117) WHERE dc.dop_cat_id IN (11,33,55,61,84,94,101,163,162,206,212,290,291,328,59,60,2380,571,194,295,317,542) AND g.is_present_all_mods AND g.entry =0 AND g.is_active UNION SELECT id, null gid FROM pod_cat_category WHERE id in (2134) [0.10288381576538 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_6a2aa2a542675 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.00096607208251953 sec]
DROP TEMPORARY TABLE IF EXISTS temp_brand_counts_6a2aa2a542675 [0.00023293495178223 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 (30,32,117) WHERE g.cat_id IN (11,33,55,61,84,94,101,163,162,206,212,290,291,328,59,60,2380,571,194,295,317,542) AND g.brand_id IN (2134) 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 (30,32,117) WHERE dc.dop_cat_id IN (11,33,55,61,84,94,101,163,162,206,212,290,291,328,59,60,2380,571,194,295,317,542) AND g.brand_id IN (2134) 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 (30,32,117) WHERE g.cat_id IN (11,33,55,61,84,94,101,163,162,206,212,290,291,328,59,60,2380,571,194,295,317,542) AND g.brand_id IN (2134) 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 (30,32,117) WHERE dc.dop_cat_id IN (11,33,55,61,84,94,101,163,162,206,212,290,291,328,59,60,2380,571,194,295,317,542) AND g.brand_id IN (2134) AND go.is_present AND go.is_active AND g.is_present_all_mods AND g.is_active ) A [0.025830030441284 sec]
SELECT g.id, if(g.is_present and g.price >= '1032' and g.price <= '1032',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 >= '1032' and g.price <= '1032',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 >= '1032' and pcg.price <= '1032' WHERE g.id in (422214) GROUP BY g.id ORDER BY g.ordr desc LIMIT 0, 32 [0.0010278224945068 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 >= '1032' and g.price <= '1032',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 >= '1032' and g.price <= '1032',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 >= '1032' and pcg.price <= '1032') WHERE g.id in (422214) GROUP BY g.id ORDER BY g.ordr desc [0.00098299980163574 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 (422214) AND g.is_present = '1' AND g.is_active = '1' ORDER BY g.entry, g.is_present DESC [0.00068783760070801 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 (422214) ORDER BY ggd2.good_id, g.is_present_all_mods DESC [0.00087499618530273 sec]
SELECT name_ua AS name, url FROM pod_cat_brand WHERE id in (2134) [0.00034999847412109 sec]
SELECT cb.id, cb.info_ua AS info, cb.title_ua AS title, cb.metadesc_ua AS metadesc, cb.seo_text_ua AS seo_text, cb.tagH1_ua AS tagH1, cb.canonical, cb.is_active FROM pod_set_cat_brand cb WHERE cb.cat_id = 11 AND cb.brand_id = 2134 AND cb.is_active = 1 LIMIT 1 [0.00030803680419922 sec]
SELECT name_ua AS name, url FROM pod_cat_brand WHERE id='2134' [0.00032401084899902 sec]
SELECT url FROM pod_cat_brand WHERE id = 2134 [0.00026392936706543 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_A_7872o4ivb3i1kqu0ktfho38ghf_6a2aa2a567f49; CREATE TEMPORARY TABLE tmp_A_7872o4ivb3i1kqu0ktfho38ghf_6a2aa2a567f49 ( id INT NOT NULL, PRIMARY KEY (id) ) ENGINE=MEMORY; [0.00049400329589844 sec]
INSERT INTO tmp_A_7872o4ivb3i1kqu0ktfho38ghf_6a2aa2a567f49 (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 (30,32,117) WHERE g.cat_id IN (11,33,55,61,84,94,101,163,162,206,212,290,291,328,59,60,2380,571,194,295,317,542) AND g.brand_id IN (2134) 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 (30,32,117) WHERE dc.dop_cat_id IN (11,33,55,61,84,94,101,163,162,206,212,290,291,328,59,60,2380,571,194,295,317,542) AND g.brand_id IN (2134) AND g.is_present_all_mods AND g.entry =0 AND g.is_active ) A [0.0046777725219727 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_pairs_7872o4ivb3i1kqu0ktfho38ghf_6a2aa2a567f49; CREATE TEMPORARY TABLE tmp_pairs_7872o4ivb3i1kqu0ktfho38ghf_6a2aa2a567f49 ( goods_id INT NOT NULL, filter_id INT NOT NULL, PRIMARY KEY (goods_id, filter_id) ) ENGINE=MEMORY; [0.0004580020904541 sec]
INSERT INTO tmp_pairs_7872o4ivb3i1kqu0ktfho38ghf_6a2aa2a567f49 (goods_id, filter_id) SELECT DISTINCT A.id AS goods_id, f.id AS filter_id FROM tmp_A_7872o4ivb3i1kqu0ktfho38ghf_6a2aa2a567f49 A INNER JOIN pod_good_filter gf ON A.id = gf.id_good AND gf.filter_id_value NOT IN (30,32,117) INNER JOIN pod_cat_filter cf ON gf.filter_id = cf.filter_id AND cf.category_id = 11 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.019822120666504 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_counts_7872o4ivb3i1kqu0ktfho38ghf_6a2aa2a567f49; CREATE TEMPORARY TABLE tmp_counts_7872o4ivb3i1kqu0ktfho38ghf_6a2aa2a567f49 ( filter_id INT NOT NULL PRIMARY KEY, count INT NOT NULL ) ENGINE=MEMORY; [0.00049901008605957 sec]
INSERT IGNORE INTO tmp_counts_7872o4ivb3i1kqu0ktfho38ghf_6a2aa2a567f49 (filter_id, count) SELECT p.filter_id, COUNT(*) AS count FROM tmp_pairs_7872o4ivb3i1kqu0ktfho38ghf_6a2aa2a567f49 p GROUP BY p.filter_id [0.00038504600524902 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_7872o4ivb3i1kqu0ktfho38ghf_6a2aa2a567f49 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.00037598609924316 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_A_7872o4ivb3i1kqu0ktfho38ghf_6a2aa2a567f49 [0.0003199577331543 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_pairs_7872o4ivb3i1kqu0ktfho38ghf_6a2aa2a567f49 [0.00016498565673828 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_counts_7872o4ivb3i1kqu0ktfho38ghf_6a2aa2a567f49 [0.00014090538024902 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_A_7872o4ivb3i1kqu0ktfho38ghf_6a2aa2a56f19d; CREATE TEMPORARY TABLE tmp_A_7872o4ivb3i1kqu0ktfho38ghf_6a2aa2a56f19d ( id INT NOT NULL, entry INT NOT NULL, PRIMARY KEY (id), KEY idx_entry (entry) ) ENGINE=MEMORY; [0.00036787986755371 sec]
INSERT INTO tmp_A_7872o4ivb3i1kqu0ktfho38ghf_6a2aa2a56f19d (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 (30,32,117) WHERE g.cat_id IN (11,33,55,61,84,94,101,163,162,206,212,290,291,328,59,60,2380,571,194,295,317,542) AND g.brand_id IN (2134) 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 (30,32,117) WHERE dc.dop_cat_id IN (11,33,55,61,84,94,101,163,162,206,212,290,291,328,59,60,2380,571,194,295,317,542) AND g.brand_id IN (2134) 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 (30,32,117) WHERE g.cat_id IN (11,33,55,61,84,94,101,163,162,206,212,290,291,328,59,60,2380,571,194,295,317,542) AND g.brand_id IN (2134) 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 (30,32,117) WHERE dc.dop_cat_id IN (11,33,55,61,84,94,101,163,162,206,212,290,291,328,59,60,2380,571,194,295,317,542) AND g.brand_id IN (2134) AND go.is_present AND go.is_active AND g.is_present_all_mods AND g.is_active ) A [0.0062968730926514 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_pairs_7872o4ivb3i1kqu0ktfho38ghf_6a2aa2a56f19d; CREATE TEMPORARY TABLE tmp_pairs_7872o4ivb3i1kqu0ktfho38ghf_6a2aa2a56f19d ( goods_id INT NOT NULL, filter_id INT NOT NULL, PRIMARY KEY (goods_id, filter_id) ) ENGINE=MEMORY; [0.00047612190246582 sec]
INSERT INTO tmp_pairs_7872o4ivb3i1kqu0ktfho38ghf_6a2aa2a56f19d (goods_id, filter_id) SELECT DISTINCT A.entry AS goods_id, f.id AS filter_id FROM tmp_A_7872o4ivb3i1kqu0ktfho38ghf_6a2aa2a56f19d A INNER JOIN pod_good_filter gf ON A.id = gf.id_good AND gf.filter_id_value NOT IN (30,32,117) INNER JOIN pod_cat_filter cf ON gf.filter_id = cf.filter_id AND cf.category_id = 11 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.0014069080352783 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_counts_7872o4ivb3i1kqu0ktfho38ghf_6a2aa2a56f19d; CREATE TEMPORARY TABLE tmp_counts_7872o4ivb3i1kqu0ktfho38ghf_6a2aa2a56f19d ( filter_id INT NOT NULL PRIMARY KEY, count INT NOT NULL ) ENGINE=MEMORY; [0.00038814544677734 sec]
INSERT IGNORE INTO tmp_counts_7872o4ivb3i1kqu0ktfho38ghf_6a2aa2a56f19d (filter_id, count) SELECT p.filter_id, COUNT(*) AS count FROM tmp_pairs_7872o4ivb3i1kqu0ktfho38ghf_6a2aa2a56f19d p GROUP BY p.filter_id [0.00037193298339844 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_7872o4ivb3i1kqu0ktfho38ghf_6a2aa2a56f19d 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.00032401084899902 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_A_7872o4ivb3i1kqu0ktfho38ghf_6a2aa2a56f19d [0.00032687187194824 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_pairs_7872o4ivb3i1kqu0ktfho38ghf_6a2aa2a56f19d [0.00017309188842773 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_counts_7872o4ivb3i1kqu0ktfho38ghf_6a2aa2a56f19d [0.00014114379882812 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_A_7872o4ivb3i1kqu0ktfho38ghf_6a2aa2a572010; CREATE TEMPORARY TABLE tmp_A_7872o4ivb3i1kqu0ktfho38ghf_6a2aa2a572010 ( id INT NOT NULL, PRIMARY KEY (id) ) ENGINE=MEMORY; [0.00025296211242676 sec]
INSERT INTO tmp_A_7872o4ivb3i1kqu0ktfho38ghf_6a2aa2a572010 (id) SELECT A.id FROM ( SELECT g.id -- основні FROM pod_cat_good g USE INDEX (idx_cat_entry_active_present) WHERE g.cat_id IN (11,33,55,61,84,94,101,163,162,206,212,290,291,328,59,60,2380,571,194,295,317,542) AND g.brand_id IN (2134) 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 WHERE dc.dop_cat_id IN (11,33,55,61,84,94,101,163,162,206,212,290,291,328,59,60,2380,571,194,295,317,542) AND g.brand_id IN (2134) AND g.is_present_all_mods AND g.entry =0 AND g.is_active ) A [0.029958009719849 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_pairs_7872o4ivb3i1kqu0ktfho38ghf_6a2aa2a572010; CREATE TEMPORARY TABLE tmp_pairs_7872o4ivb3i1kqu0ktfho38ghf_6a2aa2a572010 ( goods_id INT NOT NULL, filter_id INT NOT NULL, PRIMARY KEY (goods_id, filter_id) ) ENGINE=MEMORY; [0.0006558895111084 sec]
INSERT INTO tmp_pairs_7872o4ivb3i1kqu0ktfho38ghf_6a2aa2a572010 (goods_id, filter_id) SELECT DISTINCT A.id AS goods_id, f.id AS filter_id FROM tmp_A_7872o4ivb3i1kqu0ktfho38ghf_6a2aa2a572010 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.0064148902893066 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_counts_7872o4ivb3i1kqu0ktfho38ghf_6a2aa2a572010; CREATE TEMPORARY TABLE tmp_counts_7872o4ivb3i1kqu0ktfho38ghf_6a2aa2a572010 ( filter_id INT NOT NULL PRIMARY KEY, count INT NOT NULL ) ENGINE=MEMORY; [0.00050187110900879 sec]
INSERT INTO tmp_counts_7872o4ivb3i1kqu0ktfho38ghf_6a2aa2a572010 (filter_id, count) SELECT p.filter_id, COUNT(*) AS count FROM tmp_pairs_7872o4ivb3i1kqu0ktfho38ghf_6a2aa2a572010 p GROUP BY p.filter_id [0.00046086311340332 sec]
INSERT IGNORE INTO tmp_counts_7872o4ivb3i1kqu0ktfho38ghf_6a2aa2a572010 (filter_id, count) SELECT pf.id, 0 FROM pod_filter pf LEFT JOIN tmp_counts_7872o4ivb3i1kqu0ktfho38ghf_6a2aa2a572010 c ON c.filter_id = pf.id WHERE pf.id in (30,32,117) AND c.filter_id IS NULL [0.00041913986206055 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_7872o4ivb3i1kqu0ktfho38ghf_6a2aa2a572010 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.00044918060302734 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_A_7872o4ivb3i1kqu0ktfho38ghf_6a2aa2a572010 [0.00033903121948242 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_pairs_7872o4ivb3i1kqu0ktfho38ghf_6a2aa2a572010 [0.00013113021850586 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_counts_7872o4ivb3i1kqu0ktfho38ghf_6a2aa2a572010 [0.00012612342834473 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_A_7872o4ivb3i1kqu0ktfho38ghf_6a2aa2a57c1ba; CREATE TEMPORARY TABLE tmp_A_7872o4ivb3i1kqu0ktfho38ghf_6a2aa2a57c1ba ( entry INT NOT NULL, sub_icon_id INT NOT NULL, PRIMARY KEY (entry, sub_icon_id) ) ENGINE=MEMORY; [0.0002748966217041 sec]
INSERT IGNORE INTO tmp_A_7872o4ivb3i1kqu0ktfho38ghf_6a2aa2a57c1ba (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 (30,32,117) WHERE g.cat_id IN (11,33,55,61,84,94,101,163,162,206,212,290,291,328,59,60,2380,571,194,295,317,542) AND g.brand_id IN (2134) 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 (30,32,117) WHERE dc.dop_cat_id IN (11,33,55,61,84,94,101,163,162,206,212,290,291,328,59,60,2380,571,194,295,317,542) AND g.brand_id IN (2134) 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 (30,32,117) WHERE g.cat_id IN (11,33,55,61,84,94,101,163,162,206,212,290,291,328,59,60,2380,571,194,295,317,542) AND g.brand_id IN (2134) 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 (30,32,117) WHERE dc.dop_cat_id IN (11,33,55,61,84,94,101,163,162,206,212,290,291,328,59,60,2380,571,194,295,317,542) AND g.brand_id IN (2134) AND go.is_present AND go.is_active AND g.is_present_all_mods AND g.is_active ) A [0.012096166610718 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_counts_7872o4ivb3i1kqu0ktfho38ghf_6a2aa2a57c1ba; CREATE TEMPORARY TABLE tmp_counts_7872o4ivb3i1kqu0ktfho38ghf_6a2aa2a57c1ba ( sub_icon_id INT NOT NULL PRIMARY KEY, count INT NOT NULL ) ENGINE=MEMORY; [0.00049185752868652 sec]
INSERT IGNORE INTO tmp_counts_7872o4ivb3i1kqu0ktfho38ghf_6a2aa2a57c1ba (sub_icon_id, count) SELECT sub_icon_id, COUNT(DISTINCT entry) AS count FROM ( SELECT A.entry, A.sub_icon_id FROM tmp_A_7872o4ivb3i1kqu0ktfho38ghf_6a2aa2a57c1ba 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.00066900253295898 sec]
SELECT c.sub_icon_id AS id, c.count, si.entry, si.name_ua AS name, si.url FROM tmp_counts_7872o4ivb3i1kqu0ktfho38ghf_6a2aa2a57c1ba 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.00038814544677734 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_A_7872o4ivb3i1kqu0ktfho38ghf_6a2aa2a57c1ba [0.00036311149597168 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_counts_7872o4ivb3i1kqu0ktfho38ghf_6a2aa2a57c1ba [0.00018000602722168 sec]
Пледи Diva (Дівa) - великий вибір, фото, відгуки. Купити Пледи Diva в Києві і Україні

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

ПЕРЕЙТИ

Пледи Diva