SELECT url_to, r404 FROM pod_redirect WHERE BINARY REPLACE(url_from,'/ru/','/') = '/kofty_dlya_devochek/gray-o_7-polyester-flis-bembi-timbo.html' LIMIT 0,1 [0.00071907043457031 sec]
SELECT pod_filter.id,pod_filter.url FROM pod_filter WHERE BINARY pod_filter.url IN ('gray','o_7','polyester','flis','bembi','timbo') order by url [0.0010759830474854 sec]
SELECT pod_sub_icon.id,pod_sub_icon.url FROM pod_sub_icon WHERE BINARY pod_sub_icon.url IN ('gray','o_7','polyester','flis','bembi','timbo') order by url [0.00080609321594238 sec]
select id,url from pod_cat_brand where BINARY url IN ('gray','o_7','polyester','flis','bembi','timbo') [0.0013129711151123 sec]
SELECT id, url FROM pod_filter WHERE url IN ('gray','o_7','polyester','flis','bembi','timbo') [0.00040602684020996 sec]
SELECT id, url FROM pod_sub_icon WHERE url IN ('gray','o_7','polyester','flis','bembi','timbo') [0.00037908554077148 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 (683,32,365,392) and f.is_active AND mf.is_active ORDER BY mf.id, f.id [0.00050187110900879 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 (392,683) 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.brand_id IN (196,1217) 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 (392,683) 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.brand_id IN (196,1217) 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 (392,683) 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 g.brand_id IN (196,1217) 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 (392,683) 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 g.brand_id IN (196,1217) AND go.is_present AND go.is_active AND g.is_present_all_mods AND g.is_active [0.057265043258667 sec]
CREATE TEMPORARY TABLE temp_brand_counts_6a2aaeec8cd40 ( id INT, gid INT, INDEX idx_id (id), INDEX idx_gid (gid) ) [0.00023698806762695 sec]
INSERT INTO temp_brand_counts_6a2aaeec8cd40 (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 (392,683) 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 (32) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (392,683) 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 (32) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (392,683) 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 (32) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (392,683) 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 UNION SELECT id, null gid FROM pod_cat_category WHERE id in (196,1217) [0.23607492446899 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_6a2aaeec8cd40 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.00083589553833008 sec]
DROP TEMPORARY TABLE IF EXISTS temp_brand_counts_6a2aaeec8cd40 [0.00032305717468262 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 (392,683) 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.brand_id IN (196,1217) 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 (392,683) 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.brand_id IN (196,1217) 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 (392,683) 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 g.brand_id IN (196,1217) 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 (392,683) 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 g.brand_id IN (196,1217) AND go.is_present AND go.is_active AND g.is_present_all_mods AND g.is_active ) A [0.02835488319397 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 (470219) GROUP BY g.id ORDER BY g.ordr desc [0.0020549297332764 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_A_utoseiour3bm02huekh9urnovt_6a2aaeecd214a; CREATE TEMPORARY TABLE tmp_A_utoseiour3bm02huekh9urnovt_6a2aaeecd214a ( id INT NOT NULL, PRIMARY KEY (id) ) ENGINE=MEMORY; [0.00057291984558105 sec]
INSERT INTO tmp_A_utoseiour3bm02huekh9urnovt_6a2aaeecd214a (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 (392,683) 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.brand_id IN (196,1217) 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 (392,683) 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.brand_id IN (196,1217) 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 (392,683) 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 g.brand_id IN (196,1217) 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 (392,683) 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 g.brand_id IN (196,1217) AND go.is_present AND go.is_active AND g.is_present_all_mods AND g.is_active ) A [0.0072951316833496 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_pairs_utoseiour3bm02huekh9urnovt_6a2aaeecd214a; CREATE TEMPORARY TABLE tmp_pairs_utoseiour3bm02huekh9urnovt_6a2aaeecd214a ( goods_id INT NOT NULL, filter_id INT NOT NULL, PRIMARY KEY (goods_id, filter_id) ) ENGINE=MEMORY; [0.00056886672973633 sec]
INSERT INTO tmp_pairs_utoseiour3bm02huekh9urnovt_6a2aaeecd214a (goods_id, filter_id) SELECT DISTINCT A.id AS goods_id, f.id AS filter_id FROM tmp_A_utoseiour3bm02huekh9urnovt_6a2aaeecd214a A INNER JOIN pod_good_filter gf ON A.id = gf.id_good AND gf.filter_id_value NOT IN (32,392,683,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.019692897796631 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_counts_utoseiour3bm02huekh9urnovt_6a2aaeecd214a; CREATE TEMPORARY TABLE tmp_counts_utoseiour3bm02huekh9urnovt_6a2aaeecd214a ( filter_id INT NOT NULL PRIMARY KEY, count INT NOT NULL ) ENGINE=MEMORY; [0.00055909156799316 sec]
INSERT IGNORE INTO tmp_counts_utoseiour3bm02huekh9urnovt_6a2aaeecd214a (filter_id, count) SELECT p.filter_id, COUNT(*) AS count FROM tmp_pairs_utoseiour3bm02huekh9urnovt_6a2aaeecd214a p GROUP BY p.filter_id [0.00051212310791016 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_utoseiour3bm02huekh9urnovt_6a2aaeecd214a 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.00043606758117676 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_A_utoseiour3bm02huekh9urnovt_6a2aaeecd214a [0.00041890144348145 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_pairs_utoseiour3bm02huekh9urnovt_6a2aaeecd214a [0.0001518726348877 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_counts_utoseiour3bm02huekh9urnovt_6a2aaeecd214a [0.00017309188842773 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_A_utoseiour3bm02huekh9urnovt_6a2aaeecd9f53; CREATE TEMPORARY TABLE tmp_A_utoseiour3bm02huekh9urnovt_6a2aaeecd9f53 ( id INT NOT NULL, entry INT NOT NULL, PRIMARY KEY (id), KEY idx_entry (entry) ) ENGINE=MEMORY; [0.00038504600524902 sec]
INSERT INTO tmp_A_utoseiour3bm02huekh9urnovt_6a2aaeecd9f53 (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 (392,683) 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.brand_id IN (196,1217) 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 (392,683) 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.brand_id IN (196,1217) 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 (392,683) 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 g.brand_id IN (196,1217) 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 (392,683) 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 g.brand_id IN (196,1217) AND go.is_present AND go.is_active AND g.is_present_all_mods AND g.is_active ) A [0.0042209625244141 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_pairs_utoseiour3bm02huekh9urnovt_6a2aaeecd9f53; CREATE TEMPORARY TABLE tmp_pairs_utoseiour3bm02huekh9urnovt_6a2aaeecd9f53 ( goods_id INT NOT NULL, filter_id INT NOT NULL, PRIMARY KEY (goods_id, filter_id) ) ENGINE=MEMORY; [0.00026202201843262 sec]
INSERT INTO tmp_pairs_utoseiour3bm02huekh9urnovt_6a2aaeecd9f53 (goods_id, filter_id) SELECT DISTINCT A.entry AS goods_id, f.id AS filter_id FROM tmp_A_utoseiour3bm02huekh9urnovt_6a2aaeecd9f53 A INNER JOIN pod_good_filter gf ON A.id = gf.id_good AND gf.filter_id_value NOT IN (32,392,683,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.0012171268463135 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_counts_utoseiour3bm02huekh9urnovt_6a2aaeecd9f53; CREATE TEMPORARY TABLE tmp_counts_utoseiour3bm02huekh9urnovt_6a2aaeecd9f53 ( filter_id INT NOT NULL PRIMARY KEY, count INT NOT NULL ) ENGINE=MEMORY; [0.00022387504577637 sec]
INSERT IGNORE INTO tmp_counts_utoseiour3bm02huekh9urnovt_6a2aaeecd9f53 (filter_id, count) SELECT p.filter_id, COUNT(*) AS count FROM tmp_pairs_utoseiour3bm02huekh9urnovt_6a2aaeecd9f53 p GROUP BY p.filter_id [0.0002138614654541 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_utoseiour3bm02huekh9urnovt_6a2aaeecd9f53 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.00017905235290527 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_A_utoseiour3bm02huekh9urnovt_6a2aaeecd9f53 [0.00016403198242188 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_pairs_utoseiour3bm02huekh9urnovt_6a2aaeecd9f53 [7.4148178100586E-5 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_counts_utoseiour3bm02huekh9urnovt_6a2aaeecd9f53 [7.2002410888672E-5 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_A_utoseiour3bm02huekh9urnovt_6a2aaeecdc2c6; CREATE TEMPORARY TABLE tmp_A_utoseiour3bm02huekh9urnovt_6a2aaeecdc2c6 ( id INT NOT NULL, PRIMARY KEY (id) ) ENGINE=MEMORY; [0.00017905235290527 sec]
INSERT INTO tmp_A_utoseiour3bm02huekh9urnovt_6a2aaeecdc2c6 (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,683) 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.brand_id IN (196,1217) 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,683) 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.brand_id IN (196,1217) 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,683) 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 g.brand_id IN (196,1217) 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,683) 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 g.brand_id IN (196,1217) AND go.is_present AND go.is_active AND g.is_present_all_mods AND g.is_active ) A [0.015465021133423 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_pairs_utoseiour3bm02huekh9urnovt_6a2aaeecdc2c6; CREATE TEMPORARY TABLE tmp_pairs_utoseiour3bm02huekh9urnovt_6a2aaeecdc2c6 ( goods_id INT NOT NULL, filter_id INT NOT NULL, PRIMARY KEY (goods_id, filter_id) ) ENGINE=MEMORY; [0.00031709671020508 sec]
INSERT INTO tmp_pairs_utoseiour3bm02huekh9urnovt_6a2aaeecdc2c6 (goods_id, filter_id) SELECT DISTINCT A.id AS goods_id, f.id AS filter_id FROM tmp_A_utoseiour3bm02huekh9urnovt_6a2aaeecdc2c6 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.0058012008666992 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_counts_utoseiour3bm02huekh9urnovt_6a2aaeecdc2c6; CREATE TEMPORARY TABLE tmp_counts_utoseiour3bm02huekh9urnovt_6a2aaeecdc2c6 ( filter_id INT NOT NULL PRIMARY KEY, count INT NOT NULL ) ENGINE=MEMORY; [0.00035309791564941 sec]
INSERT INTO tmp_counts_utoseiour3bm02huekh9urnovt_6a2aaeecdc2c6 (filter_id, count) SELECT p.filter_id, COUNT(*) AS count FROM tmp_pairs_utoseiour3bm02huekh9urnovt_6a2aaeecdc2c6 p GROUP BY p.filter_id [0.00028896331787109 sec]
INSERT IGNORE INTO tmp_counts_utoseiour3bm02huekh9urnovt_6a2aaeecdc2c6 (filter_id, count) SELECT pf.id, 0 FROM pod_filter pf LEFT JOIN tmp_counts_utoseiour3bm02huekh9urnovt_6a2aaeecdc2c6 c ON c.filter_id = pf.id WHERE pf.id in (32) AND c.filter_id IS NULL [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_utoseiour3bm02huekh9urnovt_6a2aaeecdc2c6 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.00026702880859375 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_A_utoseiour3bm02huekh9urnovt_6a2aaeecdc2c6 [0.00022792816162109 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_pairs_utoseiour3bm02huekh9urnovt_6a2aaeecdc2c6 [8.8930130004883E-5 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_counts_utoseiour3bm02huekh9urnovt_6a2aaeecdc2c6 [9.608268737793E-5 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_A_utoseiour3bm02huekh9urnovt_6a2aaeece2619; CREATE TEMPORARY TABLE tmp_A_utoseiour3bm02huekh9urnovt_6a2aaeece2619 ( id INT NOT NULL, PRIMARY KEY (id) ) ENGINE=MEMORY; [0.0001838207244873 sec]
INSERT INTO tmp_A_utoseiour3bm02huekh9urnovt_6a2aaeece2619 (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 (365) WHERE g.cat_id IN (347) AND g.brand_id IN (196,1217) 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 (365) WHERE dc.dop_cat_id IN (347) AND g.brand_id IN (196,1217) 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 (365) WHERE g.cat_id IN (347) AND g.brand_id IN (196,1217) 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 (365) WHERE dc.dop_cat_id IN (347) AND g.brand_id IN (196,1217) AND go.is_present AND go.is_active AND g.is_present_all_mods AND g.is_active ) A [0.0064029693603516 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_pairs_utoseiour3bm02huekh9urnovt_6a2aaeece2619; CREATE TEMPORARY TABLE tmp_pairs_utoseiour3bm02huekh9urnovt_6a2aaeece2619 ( goods_id INT NOT NULL, filter_id INT NOT NULL, PRIMARY KEY (goods_id, filter_id) ) ENGINE=MEMORY; [0.00031709671020508 sec]
INSERT INTO tmp_pairs_utoseiour3bm02huekh9urnovt_6a2aaeece2619 (goods_id, filter_id) SELECT DISTINCT A.id AS goods_id, f.id AS filter_id FROM tmp_A_utoseiour3bm02huekh9urnovt_6a2aaeece2619 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.0059170722961426 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_counts_utoseiour3bm02huekh9urnovt_6a2aaeece2619; CREATE TEMPORARY TABLE tmp_counts_utoseiour3bm02huekh9urnovt_6a2aaeece2619 ( filter_id INT NOT NULL PRIMARY KEY, count INT NOT NULL ) ENGINE=MEMORY; [0.00036120414733887 sec]
INSERT INTO tmp_counts_utoseiour3bm02huekh9urnovt_6a2aaeece2619 (filter_id, count) SELECT p.filter_id, COUNT(*) AS count FROM tmp_pairs_utoseiour3bm02huekh9urnovt_6a2aaeece2619 p GROUP BY p.filter_id [0.0002739429473877 sec]
INSERT IGNORE INTO tmp_counts_utoseiour3bm02huekh9urnovt_6a2aaeece2619 (filter_id, count) SELECT pf.id, 0 FROM pod_filter pf LEFT JOIN tmp_counts_utoseiour3bm02huekh9urnovt_6a2aaeece2619 c ON c.filter_id = pf.id WHERE pf.id in (392,683) AND c.filter_id IS NULL [0.00027108192443848 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_utoseiour3bm02huekh9urnovt_6a2aaeece2619 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.00024795532226562 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_A_utoseiour3bm02huekh9urnovt_6a2aaeece2619 [0.00022196769714355 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_pairs_utoseiour3bm02huekh9urnovt_6a2aaeece2619 [0.00014209747314453 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_counts_utoseiour3bm02huekh9urnovt_6a2aaeece2619 [9.9897384643555E-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 (683,32,392) and f.is_active AND mf.is_active ORDER BY mf.id, f.id [0.00060009956359863 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_A_utoseiour3bm02huekh9urnovt_6a2aaeece6902; CREATE TEMPORARY TABLE tmp_A_utoseiour3bm02huekh9urnovt_6a2aaeece6902 ( id INT NOT NULL, entry INT NOT NULL, PRIMARY KEY (id), KEY idx_entry (entry) ) ENGINE=MEMORY [0.00043177604675293 sec]
INSERT INTO tmp_A_utoseiour3bm02huekh9urnovt_6a2aaeece6902 (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 (392,683) WHERE g.cat_id IN (347) AND g.brand_id IN (196,1217) 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 (392,683) WHERE dc.dop_cat_id IN (347) AND g.brand_id IN (196,1217) 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 (392,683) WHERE g.cat_id IN (347) AND g.brand_id IN (196,1217) 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 (392,683) WHERE dc.dop_cat_id IN (347) AND g.brand_id IN (196,1217) AND go.is_present AND go.is_active AND g.is_present_all_mods AND g.is_active ) A [0.014053106307983 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_pairs_utoseiour3bm02huekh9urnovt_6a2aaeece6902; CREATE TEMPORARY TABLE tmp_pairs_utoseiour3bm02huekh9urnovt_6a2aaeece6902 ( goods_id INT NOT NULL, filter_id INT NOT NULL, PRIMARY KEY (goods_id, filter_id) ) ENGINE=MEMORY [0.00049400329589844 sec]
INSERT INTO tmp_pairs_utoseiour3bm02huekh9urnovt_6a2aaeece6902 (goods_id, filter_id) SELECT DISTINCT A.entry AS goods_id, f.id AS filter_id FROM tmp_A_utoseiour3bm02huekh9urnovt_6a2aaeece6902 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.0062789916992188 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_counts_utoseiour3bm02huekh9urnovt_6a2aaeece6902; CREATE TEMPORARY TABLE tmp_counts_utoseiour3bm02huekh9urnovt_6a2aaeece6902 ( filter_id INT NOT NULL PRIMARY KEY, count INT NOT NULL ) ENGINE=MEMORY [0.00095510482788086 sec]
INSERT INTO tmp_counts_utoseiour3bm02huekh9urnovt_6a2aaeece6902 (filter_id, count) SELECT p.filter_id, COUNT(*) AS count FROM tmp_pairs_utoseiour3bm02huekh9urnovt_6a2aaeece6902 p GROUP BY p.filter_id [0.00037097930908203 sec]
INSERT INTO tmp_counts_utoseiour3bm02huekh9urnovt_6a2aaeece6902 (filter_id, count) SELECT pf.id, 0 FROM pod_filter pf LEFT JOIN tmp_counts_utoseiour3bm02huekh9urnovt_6a2aaeece6902 c ON c.filter_id = pf.id WHERE pf.id in (365) AND c.filter_id IS NULL [0.00046706199645996 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_utoseiour3bm02huekh9urnovt_6a2aaeece6902 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.00039410591125488 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_A_utoseiour3bm02huekh9urnovt_6a2aaeece6902 [0.00028610229492188 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_pairs_utoseiour3bm02huekh9urnovt_6a2aaeece6902 [0.00016212463378906 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_counts_utoseiour3bm02huekh9urnovt_6a2aaeece6902 [0.00018620491027832 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_A_utoseiour3bm02huekh9urnovt_6a2aaeececcaa; CREATE TEMPORARY TABLE tmp_A_utoseiour3bm02huekh9urnovt_6a2aaeececcaa ( entry INT NOT NULL, sub_icon_id INT NOT NULL, PRIMARY KEY (entry, sub_icon_id) ) ENGINE=MEMORY; [0.0003659725189209 sec]
INSERT IGNORE INTO tmp_A_utoseiour3bm02huekh9urnovt_6a2aaeececcaa (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 (392,683) 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.brand_id IN (196,1217) 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 (392,683) 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.brand_id IN (196,1217) 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 (392,683) 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 g.brand_id IN (196,1217) 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 (392,683) 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 g.brand_id IN (196,1217) AND go.is_present AND go.is_active AND g.is_present_all_mods AND g.is_active ) A [0.0066518783569336 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_counts_utoseiour3bm02huekh9urnovt_6a2aaeececcaa; CREATE TEMPORARY TABLE tmp_counts_utoseiour3bm02huekh9urnovt_6a2aaeececcaa ( sub_icon_id INT NOT NULL PRIMARY KEY, count INT NOT NULL ) ENGINE=MEMORY; [0.00041007995605469 sec]
INSERT IGNORE INTO tmp_counts_utoseiour3bm02huekh9urnovt_6a2aaeececcaa (sub_icon_id, count) SELECT sub_icon_id, COUNT(DISTINCT entry) AS count FROM ( SELECT A.entry, A.sub_icon_id FROM tmp_A_utoseiour3bm02huekh9urnovt_6a2aaeececcaa 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.00049400329589844 sec]
SELECT c.sub_icon_id AS id, c.count, si.entry, si.name_ua AS name, si.url FROM tmp_counts_utoseiour3bm02huekh9urnovt_6a2aaeececcaa 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.00031018257141113 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_A_utoseiour3bm02huekh9urnovt_6a2aaeececcaa [0.0003349781036377 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_counts_utoseiour3bm02huekh9urnovt_6a2aaeececcaa [0.00015020370483398 sec]
Низькі ціни на Кофти та светри для дівчаток Bembi ... Timbo (Бeмбі ... Tімбo) в інтернет-магазині «Подушка». Купити Кофти та светри для дівчаток Bembi ... Timbo в Києві і Україні

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

ПЕРЕЙТИ

Кофти та светри для дівчаток Bembi ... Timbo