SELECT url_to, r404 FROM pod_redirect WHERE BINARY REPLACE(url_from,'/ru/','/') = '/bodi/red-gray-devochkam-suprem-bembi.html' LIMIT 0,1 [0.0004420280456543 sec]
SELECT pod_filter.id,pod_filter.url FROM pod_filter WHERE BINARY pod_filter.url IN ('red','gray','devochkam','suprem','bembi') order by url [0.0013840198516846 sec]
SELECT pod_sub_icon.id,pod_sub_icon.url FROM pod_sub_icon WHERE BINARY pod_sub_icon.url IN ('red','gray','devochkam','suprem','bembi') order by url [0.00096893310546875 sec]
select id,url from pod_cat_brand where BINARY url IN ('red','gray','devochkam','suprem','bembi') [0.002047061920166 sec]
SELECT id, url FROM pod_filter WHERE url IN ('red','gray','devochkam','suprem','bembi') [0.00036787986755371 sec]
SELECT id, url FROM pod_sub_icon WHERE url IN ('red','gray','devochkam','suprem','bembi') [0.00034999847412109 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 (120,32,24,352) and f.is_active AND mf.is_active ORDER BY mf.id, f.id [0.0003211498260498 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_base_goods; CREATE TEMPORARY TABLE tmp_base_goods ( id INT NOT NULL PRIMARY KEY, brand_id INT, price DECIMAL(10,2), old_price DECIMAL(10,2), ordr INT, is_present TINYINT(1), sub_icon_id INT, fast_delivery TINYINT(1), is_new TINYINT(1), is_sale TINYINT(1), KEY idx_brand (brand_id) ) ENGINE=MEMORY [0.00037908554077148 sec]
INSERT INTO tmp_base_goods (id, brand_id, price, old_price, ordr, is_present, sub_icon_id, fast_delivery, is_new, is_sale) SELECT g.id, g.brand_id, g.price, g.old_price, g.ordr, g.is_present, g.sub_icon_id, g.fast_delivery, g.is_new, g.is_sale FROM pod_cat_good g WHERE g.cat_id IN (218) AND g.entry=0 AND g.is_active AND g.is_present_all_mods UNION SELECT g.id, g.brand_id, g.price, g.old_price, g.ordr, g.is_present, g.sub_icon_id, g.fast_delivery, g.is_new, g.is_sale FROM pod_cat_good g INNER JOIN pod_dop_cat_category dc ON dc.good_id = g.id WHERE dc.dop_cat_id IN (218) AND g.entry=0 AND g.is_active AND g.is_present_all_mods [0.25616502761841 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_sub_goods; CREATE TEMPORARY TABLE tmp_sub_goods ( id INT NOT NULL PRIMARY KEY, entry INT NOT NULL, price DECIMAL(10,2), old_price DECIMAL(10,2), sub_icon_id INT, is_present TINYINT(1), fast_delivery TINYINT(1), is_new TINYINT(1), is_sale TINYINT(1), KEY idx_entry (entry) ) ENGINE=MEMORY [0.00056004524230957 sec]
INSERT INTO tmp_sub_goods (id, entry, price, old_price, sub_icon_id, is_present, fast_delivery, is_new, is_sale) SELECT go.id, go.entry, go.price, go.old_price, go.sub_icon_id, go.is_present, go.fast_delivery, go.is_new, go.is_sale FROM pod_cat_good go INNER JOIN tmp_base_goods t ON go.entry = t.id WHERE go.is_active AND go.is_present [0.0054769515991211 sec]
SELECT g.id /* cats:218 */ FROM tmp_base_goods g INNER JOIN pod_good_filter gf0 ON g.id = gf0.id_good AND gf0.filter_id_value in (24,32) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (120) INNER JOIN pod_good_filter gf2 ON g.id = gf2.id_good AND gf2.filter_id_value in (352) WHERE g.brand_id IN (196) AND 1 [0.015244960784912 sec]
CREATE TEMPORARY TABLE temp_brand_counts_6a2b245c1c6ba ( id INT, gid INT, INDEX idx_id (id), INDEX idx_gid (gid) ) [0.00042295455932617 sec]
INSERT INTO temp_brand_counts_6a2b245c1c6ba (id, gid) SELECT g.brand_id AS id, g.id AS gid /* cats:218 */ FROM tmp_base_goods g INNER JOIN pod_good_filter gf0 ON g.id = gf0.id_good AND gf0.filter_id_value in (24,32) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (120) INNER JOIN pod_good_filter gf2 ON g.id = gf2.id_good AND gf2.filter_id_value in (352) WHERE 1 UNION SELECT id, null gid FROM pod_cat_category WHERE id in (196) [0.0049080848693848 sec]
SELECT b.id, b.name AS name, pc.name AS country, b.country_id, b.image_icon, b.url, b.ordr, pc.code, COALESCE(tc.count, 0) as count FROM pod_cat_brand b INNER JOIN ( SELECT id, COUNT(gid) as count FROM temp_brand_counts_6a2b245c1c6ba 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.00034880638122559 sec]
DROP TEMPORARY TABLE IF EXISTS temp_brand_counts_6a2b245c1c6ba [0.0001218318939209 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 /* cats:218 */ FROM tmp_base_goods g INNER JOIN pod_good_filter gf0 ON g.id = gf0.id_good AND gf0.filter_id_value in (24,32) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (120) INNER JOIN pod_good_filter gf2 ON g.id = gf2.id_good AND gf2.filter_id_value in (352) WHERE g.brand_id IN (196) AND g.is_present AND 1 UNION SELECT MIN(go.price) AS min_price, MAX(go.price) AS max_price /* cats:218 */ FROM tmp_sub_goods go INNER JOIN tmp_base_goods g ON go.entry = g.id INNER JOIN pod_good_filter gf0 ON g.id = gf0.id_good AND gf0.filter_id_value in (24,32) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (120) INNER JOIN pod_good_filter gf2 ON g.id = gf2.id_good AND gf2.filter_id_value in (352) WHERE g.brand_id IN (196) AND 1 ) A [0.001741886138916 sec]
SELECT g.video, g.threedvideo, g.is_xit, g.is_action, g.is_sale, g.sub_is_action, g.is_new, g.is_pay_for_video, g.id, g.cat_id, g.name AS name, g.name2 AS name2, g.descr, g.size_table, g.artikul, g.image_small, g.image_big, g.price, g.old_price, g.is_present, g.is_present_all_mods, g.sub_icon_id,g.url,g.ordr, g.last_items, g.fast_delivery, g.free_delivery, g.gift, g.timer, g.action_validity, b.name AS brand_name,b.url as burl,b.id as bid, b.country AS brand_country,c.url as curl, c.name AS cat_name, si.name AS sub_icon_name,si.icon AS sub_icon, g.star, g.comment_id, if(g.is_present and g.price >= '513' and g.price <= '513',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 >= '513' and g.price <= '513',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 >= '513' and pcg.price <= '513') WHERE g.id in (492341) GROUP BY g.id ORDER BY g.ordr desc [0.0011999607086182 sec]
SELECT DISTINCT ggd2.good_id AS source_good_id, g.id, g.is_present_all_mods, pc.name 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 (492341) ORDER BY ggd2.good_id, g.is_present_all_mods DESC [0.00056791305541992 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_A_fgtds0es9qot09eqip92c5a8vl_6a2b245c221fe; CREATE TEMPORARY TABLE tmp_A_fgtds0es9qot09eqip92c5a8vl_6a2b245c221fe ( id INT NOT NULL, PRIMARY KEY (id) ) ENGINE=MEMORY; [0.00041389465332031 sec]
INSERT INTO tmp_A_fgtds0es9qot09eqip92c5a8vl_6a2b245c221fe (id) SELECT A.id FROM ( SELECT g.id /* cats:218 */ FROM tmp_base_goods g INNER JOIN pod_good_filter gf0 ON g.id = gf0.id_good AND gf0.filter_id_value in (24,32) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (120) INNER JOIN pod_good_filter gf2 ON g.id = gf2.id_good AND gf2.filter_id_value in (352) WHERE g.brand_id IN (196) AND 1 ) A [0.0014340877532959 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_pairs_fgtds0es9qot09eqip92c5a8vl_6a2b245c221fe; CREATE TEMPORARY TABLE tmp_pairs_fgtds0es9qot09eqip92c5a8vl_6a2b245c221fe ( goods_id INT NOT NULL, filter_id INT NOT NULL, PRIMARY KEY (goods_id, filter_id) ) ENGINE=MEMORY; [0.00037598609924316 sec]
INSERT INTO tmp_pairs_fgtds0es9qot09eqip92c5a8vl_6a2b245c221fe (goods_id, filter_id) SELECT DISTINCT A.id AS goods_id, f.id AS filter_id FROM tmp_A_fgtds0es9qot09eqip92c5a8vl_6a2b245c221fe A INNER JOIN pod_good_filter gf ON A.id = gf.id_good AND gf.filter_id_value NOT IN (24,32,120,352) INNER JOIN pod_cat_filter cf ON gf.filter_id = cf.filter_id AND cf.category_id = 218 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.014230012893677 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_counts_fgtds0es9qot09eqip92c5a8vl_6a2b245c221fe; CREATE TEMPORARY TABLE tmp_counts_fgtds0es9qot09eqip92c5a8vl_6a2b245c221fe ( filter_id INT NOT NULL PRIMARY KEY, count INT NOT NULL ) ENGINE=MEMORY; [0.0004420280456543 sec]
INSERT IGNORE INTO tmp_counts_fgtds0es9qot09eqip92c5a8vl_6a2b245c221fe (filter_id, count) SELECT p.filter_id, COUNT(*) AS count FROM tmp_pairs_fgtds0es9qot09eqip92c5a8vl_6a2b245c221fe p GROUP BY p.filter_id [0.00035500526428223 sec]
SELECT c.filter_id, c.count, f.entry, f.name AS name, f.url, f.ord, fm.name AS mname, fm.url AS murl, fm.ord AS mord FROM tmp_counts_fgtds0es9qot09eqip92c5a8vl_6a2b245c221fe 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.00043296813964844 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_A_fgtds0es9qot09eqip92c5a8vl_6a2b245c221fe [0.00030994415283203 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_pairs_fgtds0es9qot09eqip92c5a8vl_6a2b245c221fe [0.00014185905456543 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_counts_fgtds0es9qot09eqip92c5a8vl_6a2b245c221fe [0.00010991096496582 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_A_fgtds0es9qot09eqip92c5a8vl_6a2b245c26caf; CREATE TEMPORARY TABLE tmp_A_fgtds0es9qot09eqip92c5a8vl_6a2b245c26caf ( id INT NOT NULL, entry INT NOT NULL, PRIMARY KEY (id), KEY idx_entry (entry) ) ENGINE=MEMORY; [0.00021815299987793 sec]
INSERT INTO tmp_A_fgtds0es9qot09eqip92c5a8vl_6a2b245c26caf (id, entry) SELECT A.id, A.entry FROM ( SELECT g.id as id, g.id as entry /* cats:218 */ FROM tmp_base_goods g INNER JOIN pod_good_filter gf0 ON g.id = gf0.id_good AND gf0.filter_id_value in (24,32) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (120) INNER JOIN pod_good_filter gf2 ON g.id = gf2.id_good AND gf2.filter_id_value in (352) WHERE g.brand_id IN (196) AND g.is_present AND 1 UNION SELECT go.id as id, g.id as entry /* cats:218 */ FROM tmp_sub_goods go INNER JOIN tmp_base_goods g ON go.entry = g.id INNER JOIN pod_good_filter gf0 ON g.id = gf0.id_good AND gf0.filter_id_value in (24,32) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (120) INNER JOIN pod_good_filter gf2 ON g.id = gf2.id_good AND gf2.filter_id_value in (352) WHERE g.brand_id IN (196) AND 1 ) A [0.0024371147155762 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_pairs_fgtds0es9qot09eqip92c5a8vl_6a2b245c26caf; CREATE TEMPORARY TABLE tmp_pairs_fgtds0es9qot09eqip92c5a8vl_6a2b245c26caf ( goods_id INT NOT NULL, filter_id INT NOT NULL, PRIMARY KEY (goods_id, filter_id) ) ENGINE=MEMORY; [0.00026297569274902 sec]
INSERT INTO tmp_pairs_fgtds0es9qot09eqip92c5a8vl_6a2b245c26caf (goods_id, filter_id) SELECT DISTINCT A.entry AS goods_id, f.id AS filter_id FROM tmp_A_fgtds0es9qot09eqip92c5a8vl_6a2b245c26caf A INNER JOIN pod_good_filter gf ON A.id = gf.id_good AND gf.filter_id_value NOT IN (24,32,120,352) INNER JOIN pod_cat_filter cf ON gf.filter_id = cf.filter_id AND cf.category_id = 218 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.0007331371307373 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_counts_fgtds0es9qot09eqip92c5a8vl_6a2b245c26caf; CREATE TEMPORARY TABLE tmp_counts_fgtds0es9qot09eqip92c5a8vl_6a2b245c26caf ( filter_id INT NOT NULL PRIMARY KEY, count INT NOT NULL ) ENGINE=MEMORY; [0.00021195411682129 sec]
INSERT IGNORE INTO tmp_counts_fgtds0es9qot09eqip92c5a8vl_6a2b245c26caf (filter_id, count) SELECT p.filter_id, COUNT(*) AS count FROM tmp_pairs_fgtds0es9qot09eqip92c5a8vl_6a2b245c26caf p GROUP BY p.filter_id [0.0002739429473877 sec]
SELECT c.filter_id, c.count, f.entry, f.name AS name, f.url, f.ord, fm.name AS mname, fm.url AS murl, fm.ord AS mord FROM tmp_counts_fgtds0es9qot09eqip92c5a8vl_6a2b245c26caf 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.00033092498779297 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_A_fgtds0es9qot09eqip92c5a8vl_6a2b245c26caf [0.00023293495178223 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_pairs_fgtds0es9qot09eqip92c5a8vl_6a2b245c26caf [9.7036361694336E-5 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_counts_fgtds0es9qot09eqip92c5a8vl_6a2b245c26caf [0.00010204315185547 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 (120,352) and f.is_active AND mf.is_active ORDER BY mf.id, f.id [0.00041794776916504 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_A_fgtds0es9qot09eqip92c5a8vl_6a2b245c28673; CREATE TEMPORARY TABLE tmp_A_fgtds0es9qot09eqip92c5a8vl_6a2b245c28673 ( id INT NOT NULL, PRIMARY KEY (id) ) ENGINE=MEMORY; [0.00024795532226562 sec]
INSERT INTO tmp_A_fgtds0es9qot09eqip92c5a8vl_6a2b245c28673 (id) SELECT A.id FROM ( SELECT g.id /* cats:218 */ FROM tmp_base_goods g INNER JOIN pod_good_filter gf0 ON g.id = gf0.id_good AND gf0.filter_id_value in (120) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (352) WHERE g.brand_id IN (196) AND 1 ) A [0.00084686279296875 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_pairs_fgtds0es9qot09eqip92c5a8vl_6a2b245c28673; CREATE TEMPORARY TABLE tmp_pairs_fgtds0es9qot09eqip92c5a8vl_6a2b245c28673 ( goods_id INT NOT NULL, filter_id INT NOT NULL, PRIMARY KEY (goods_id, filter_id) ) ENGINE=MEMORY; [0.00044488906860352 sec]
INSERT INTO tmp_pairs_fgtds0es9qot09eqip92c5a8vl_6a2b245c28673 (goods_id, filter_id) SELECT DISTINCT A.id AS goods_id, f.id AS filter_id FROM tmp_A_fgtds0es9qot09eqip92c5a8vl_6a2b245c28673 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.0053160190582275 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_counts_fgtds0es9qot09eqip92c5a8vl_6a2b245c28673; CREATE TEMPORARY TABLE tmp_counts_fgtds0es9qot09eqip92c5a8vl_6a2b245c28673 ( filter_id INT NOT NULL PRIMARY KEY, count INT NOT NULL ) ENGINE=MEMORY; [0.00037813186645508 sec]
INSERT INTO tmp_counts_fgtds0es9qot09eqip92c5a8vl_6a2b245c28673 (filter_id, count) SELECT p.filter_id, COUNT(*) AS count FROM tmp_pairs_fgtds0es9qot09eqip92c5a8vl_6a2b245c28673 p GROUP BY p.filter_id [0.00026297569274902 sec]
INSERT IGNORE INTO tmp_counts_fgtds0es9qot09eqip92c5a8vl_6a2b245c28673 (filter_id, count) SELECT pf.id, 0 FROM pod_filter pf LEFT JOIN tmp_counts_fgtds0es9qot09eqip92c5a8vl_6a2b245c28673 c ON c.filter_id = pf.id WHERE pf.id in (24,32) AND c.filter_id IS NULL [0.00019192695617676 sec]
SELECT c.filter_id, c.count, f.entry, f.name AS name, f.url, f.ord, fm.name AS mname, fm.url AS murl, fm.ord AS mord FROM tmp_counts_fgtds0es9qot09eqip92c5a8vl_6a2b245c28673 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.00030803680419922 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_A_fgtds0es9qot09eqip92c5a8vl_6a2b245c28673 [0.00019693374633789 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_pairs_fgtds0es9qot09eqip92c5a8vl_6a2b245c28673 [7.7009201049805E-5 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_counts_fgtds0es9qot09eqip92c5a8vl_6a2b245c28673 [7.2956085205078E-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 (32,24,352) and f.is_active AND mf.is_active ORDER BY mf.id, f.id [0.00071215629577637 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_A_fgtds0es9qot09eqip92c5a8vl_6a2b245c2b1bf; CREATE TEMPORARY TABLE tmp_A_fgtds0es9qot09eqip92c5a8vl_6a2b245c2b1bf ( id INT NOT NULL, PRIMARY KEY (id) ) ENGINE=MEMORY; [0.0004570484161377 sec]
INSERT INTO tmp_A_fgtds0es9qot09eqip92c5a8vl_6a2b245c2b1bf (id) SELECT A.id FROM ( SELECT g.id /* cats:218 */ FROM tmp_base_goods g INNER JOIN pod_good_filter gf0 ON g.id = gf0.id_good AND gf0.filter_id_value in (24,32) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (352) WHERE g.brand_id IN (196) AND 1 ) A [0.0016860961914062 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_pairs_fgtds0es9qot09eqip92c5a8vl_6a2b245c2b1bf; CREATE TEMPORARY TABLE tmp_pairs_fgtds0es9qot09eqip92c5a8vl_6a2b245c2b1bf ( goods_id INT NOT NULL, filter_id INT NOT NULL, PRIMARY KEY (goods_id, filter_id) ) ENGINE=MEMORY; [0.00034379959106445 sec]
INSERT INTO tmp_pairs_fgtds0es9qot09eqip92c5a8vl_6a2b245c2b1bf (goods_id, filter_id) SELECT DISTINCT A.id AS goods_id, f.id AS filter_id FROM tmp_A_fgtds0es9qot09eqip92c5a8vl_6a2b245c2b1bf A INNER JOIN pod_good_filter gf ON A.id = gf.id_good AND gf.filter_id = 119 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.0047638416290283 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_counts_fgtds0es9qot09eqip92c5a8vl_6a2b245c2b1bf; CREATE TEMPORARY TABLE tmp_counts_fgtds0es9qot09eqip92c5a8vl_6a2b245c2b1bf ( filter_id INT NOT NULL PRIMARY KEY, count INT NOT NULL ) ENGINE=MEMORY; [0.00034999847412109 sec]
INSERT INTO tmp_counts_fgtds0es9qot09eqip92c5a8vl_6a2b245c2b1bf (filter_id, count) SELECT p.filter_id, COUNT(*) AS count FROM tmp_pairs_fgtds0es9qot09eqip92c5a8vl_6a2b245c2b1bf p GROUP BY p.filter_id [0.0003509521484375 sec]
INSERT IGNORE INTO tmp_counts_fgtds0es9qot09eqip92c5a8vl_6a2b245c2b1bf (filter_id, count) SELECT pf.id, 0 FROM pod_filter pf LEFT JOIN tmp_counts_fgtds0es9qot09eqip92c5a8vl_6a2b245c2b1bf c ON c.filter_id = pf.id WHERE pf.id in (120) AND c.filter_id IS NULL [0.0002739429473877 sec]
SELECT c.filter_id, c.count, f.entry, f.name AS name, f.url, f.ord, fm.name AS mname, fm.url AS murl, fm.ord AS mord FROM tmp_counts_fgtds0es9qot09eqip92c5a8vl_6a2b245c2b1bf 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.00037288665771484 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_A_fgtds0es9qot09eqip92c5a8vl_6a2b245c2b1bf [0.00028586387634277 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_pairs_fgtds0es9qot09eqip92c5a8vl_6a2b245c2b1bf [0.00016617774963379 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_counts_fgtds0es9qot09eqip92c5a8vl_6a2b245c2b1bf [0.00013399124145508 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_A_fgtds0es9qot09eqip92c5a8vl_6a2b245c2dd60; CREATE TEMPORARY TABLE tmp_A_fgtds0es9qot09eqip92c5a8vl_6a2b245c2dd60 ( id INT NOT NULL, PRIMARY KEY (id) ) ENGINE=MEMORY; [0.00025415420532227 sec]
INSERT INTO tmp_A_fgtds0es9qot09eqip92c5a8vl_6a2b245c2dd60 (id) SELECT A.id FROM ( SELECT g.id /* cats:218 */ FROM tmp_base_goods g INNER JOIN pod_good_filter gf0 ON g.id = gf0.id_good AND gf0.filter_id_value in (24,32) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (120) WHERE g.brand_id IN (196) AND 1 ) A [0.0014889240264893 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_pairs_fgtds0es9qot09eqip92c5a8vl_6a2b245c2dd60; CREATE TEMPORARY TABLE tmp_pairs_fgtds0es9qot09eqip92c5a8vl_6a2b245c2dd60 ( goods_id INT NOT NULL, filter_id INT NOT NULL, PRIMARY KEY (goods_id, filter_id) ) ENGINE=MEMORY; [0.0003819465637207 sec]
INSERT INTO tmp_pairs_fgtds0es9qot09eqip92c5a8vl_6a2b245c2dd60 (goods_id, filter_id) SELECT DISTINCT A.id AS goods_id, f.id AS filter_id FROM tmp_A_fgtds0es9qot09eqip92c5a8vl_6a2b245c2dd60 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.0053901672363281 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_counts_fgtds0es9qot09eqip92c5a8vl_6a2b245c2dd60; CREATE TEMPORARY TABLE tmp_counts_fgtds0es9qot09eqip92c5a8vl_6a2b245c2dd60 ( filter_id INT NOT NULL PRIMARY KEY, count INT NOT NULL ) ENGINE=MEMORY; [0.00039815902709961 sec]
INSERT INTO tmp_counts_fgtds0es9qot09eqip92c5a8vl_6a2b245c2dd60 (filter_id, count) SELECT p.filter_id, COUNT(*) AS count FROM tmp_pairs_fgtds0es9qot09eqip92c5a8vl_6a2b245c2dd60 p GROUP BY p.filter_id [0.0002601146697998 sec]
INSERT IGNORE INTO tmp_counts_fgtds0es9qot09eqip92c5a8vl_6a2b245c2dd60 (filter_id, count) SELECT pf.id, 0 FROM pod_filter pf LEFT JOIN tmp_counts_fgtds0es9qot09eqip92c5a8vl_6a2b245c2dd60 c ON c.filter_id = pf.id WHERE pf.id in (352) AND c.filter_id IS NULL [0.00015091896057129 sec]
SELECT c.filter_id, c.count, f.entry, f.name AS name, f.url, f.ord, fm.name AS mname, fm.url AS murl, fm.ord AS mord FROM tmp_counts_fgtds0es9qot09eqip92c5a8vl_6a2b245c2dd60 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.00020003318786621 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_A_fgtds0es9qot09eqip92c5a8vl_6a2b245c2dd60 [0.00027704238891602 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_pairs_fgtds0es9qot09eqip92c5a8vl_6a2b245c2dd60 [0.00011610984802246 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_counts_fgtds0es9qot09eqip92c5a8vl_6a2b245c2dd60 [9.0837478637695E-5 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_A_fgtds0es9qot09eqip92c5a8vl_6a2b245c30630; CREATE TEMPORARY TABLE tmp_A_fgtds0es9qot09eqip92c5a8vl_6a2b245c30630 ( entry INT NOT NULL, sub_icon_id INT NOT NULL, PRIMARY KEY (entry, sub_icon_id) ) ENGINE=MEMORY; [0.00018692016601562 sec]
INSERT IGNORE INTO tmp_A_fgtds0es9qot09eqip92c5a8vl_6a2b245c30630 (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 /* cats:218 */ FROM tmp_base_goods g INNER JOIN pod_good_filter gf0 ON g.id = gf0.id_good AND gf0.filter_id_value in (24,32) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (120) INNER JOIN pod_good_filter gf2 ON g.id = gf2.id_good AND gf2.filter_id_value in (352) WHERE g.brand_id IN (196) AND g.is_present AND 1 UNION SELECT go.id as id, g.id as entry, go.sub_icon_id /* cats:218 */ FROM tmp_sub_goods go INNER JOIN tmp_base_goods g ON go.entry = g.id INNER JOIN pod_good_filter gf0 ON g.id = gf0.id_good AND gf0.filter_id_value in (24,32) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (120) INNER JOIN pod_good_filter gf2 ON g.id = gf2.id_good AND gf2.filter_id_value in (352) WHERE g.brand_id IN (196) AND 1 ) A [0.001276969909668 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_counts_fgtds0es9qot09eqip92c5a8vl_6a2b245c30630; CREATE TEMPORARY TABLE tmp_counts_fgtds0es9qot09eqip92c5a8vl_6a2b245c30630 ( sub_icon_id INT NOT NULL PRIMARY KEY, count INT NOT NULL ) ENGINE=MEMORY; [0.00033807754516602 sec]
INSERT IGNORE INTO tmp_counts_fgtds0es9qot09eqip92c5a8vl_6a2b245c30630 (sub_icon_id, count) SELECT sub_icon_id, COUNT(DISTINCT entry) AS count FROM ( SELECT A.entry, A.sub_icon_id FROM tmp_A_fgtds0es9qot09eqip92c5a8vl_6a2b245c30630 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.0005180835723877 sec]
SELECT c.sub_icon_id AS id, c.count, si.entry, si.name AS name, si.url FROM tmp_counts_fgtds0es9qot09eqip92c5a8vl_6a2b245c30630 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.00029301643371582 sec]
----------------------------- SELECT COUNT(*) FROM pod_good_filter WHERE id_good IN (SELECT id FROM tmp_base_goods); [0.0046501159667969 sec]
Array ( [0] => Array ( [COUNT(*)] => 1132 ) ) SELECT COUNT(DISTINCT filter_id) FROM pod_good_filter WHERE id_good IN (SELECT id FROM tmp_base_goods); [0.0071549415588379 sec]
Array ( [0] => Array ( [COUNT(DISTINCT filter_id)] => 6 ) ) ----------------------------- DROP TEMPORARY TABLE IF EXISTS tmp_A_fgtds0es9qot09eqip92c5a8vl_6a2b245c30630 [0.00025296211242676 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_counts_fgtds0es9qot09eqip92c5a8vl_6a2b245c30630 [0.00013399124145508 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_base_goods; DROP TEMPORARY TABLE IF EXISTS tmp_sub_goods [0.00018811225891113 sec]
Низкие цены на Боди для новорожденных Bembi (Бeмбі) в интернет-магазине «Подушка». Купить Боди для новорожденных Bembi в Киеве и Украине

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

ПЕРЕЙТИ

Боди для новорожденных Bembi