SELECT url_to, r404 FROM pod_redirect WHERE BINARY REPLACE(url_from,'/ru/','/') = '/interernye/green.html?pg=2' LIMIT 0,1 [0.0006568431854248 sec]
SELECT pod_filter.id,pod_filter.url FROM pod_filter WHERE BINARY pod_filter.url IN ('green') order by url [0.0008399486541748 sec]
SELECT pod_sub_icon.id,pod_sub_icon.url FROM pod_sub_icon WHERE BINARY pod_sub_icon.url IN ('green') order by url [0.00051307678222656 sec]
SELECT cf.metaindex, cf.metafollow FROM pod_set_cat_filter cf INNER JOIN pod_filter f ON cf.filter_value_id = f.id INNER JOIN pod_cat_category c ON cf.cat_id = c.id WHERE f.url = 'green' AND c.url = 'interernye' AND cf.is_active = 1 LIMIT 1 [0.00031113624572754 sec]
SELECT cf.metaindex, cf.metafollow FROM pod_set_cat_subicon cf INNER JOIN pod_sub_icon si ON cf.subicon_id = si.id INNER JOIN pod_cat_category c ON cf.cat_id = c.id WHERE si.url = 'green' AND c.url = 'interernye' AND cf.is_active = 1 LIMIT 1 [0.00025296211242676 sec]
SELECT id, noindex FROM pod_sub_icon WHERE is_active = 1 AND is_active_filter = 1 AND url = 'green' LIMIT 1 [0.00021886825561523 sec]
SELECT id, url FROM pod_filter WHERE url IN ('green') [0.00018310546875 sec]
SELECT id, url FROM pod_sub_icon WHERE url IN ('green') [0.00015497207641602 sec]
SELECT sc.url, sc.id AS super_category_id, sc.name AS super_category_name, sc.templ_good_title AS templ_good_title, sc.templ_good_kwds, sc.templ_good_desc AS templ_good_desc, sc.templ_brand_title AS templ_brand_title, sc.templ_brand_kwds, sc.templ_brand_desc AS templ_brand_desc, sc.templ_cat_title AS templ_cat_title, sc.templ_cat_kwds, sc.templ_cat_desc AS templ_cat_desc, 1 AS o FROM pod_cat_category c LEFT JOIN pod_super_category sc ON sc.id=c.super_category_id WHERE c.id='610' [0.00018787384033203 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.00035309791564941 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 (2051) 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 (2051) AND g.entry=0 AND g.is_active AND g.is_present_all_mods [0.008573055267334 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.00030803680419922 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.001093864440918 sec]
SELECT g.id /* cats:2051 */ FROM tmp_base_goods g INNER JOIN pod_good_filter gf0 ON g.id = gf0.id_good AND gf0.filter_id_value in (30) WHERE 1 [0.0065150260925293 sec]
CREATE TEMPORARY TABLE temp_brand_counts_6a2b7f8c6eb70 ( id INT, gid INT, INDEX idx_id (id), INDEX idx_gid (gid) ) [0.00030207633972168 sec]
INSERT INTO temp_brand_counts_6a2b7f8c6eb70 (id, gid) SELECT g.brand_id AS id, g.id AS gid /* cats:2051 */ FROM tmp_base_goods g INNER JOIN pod_good_filter gf0 ON g.id = gf0.id_good AND gf0.filter_id_value in (30) WHERE 1 [0.0010910034179688 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_6a2b7f8c6eb70 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.00077104568481445 sec]
DROP TEMPORARY TABLE IF EXISTS temp_brand_counts_6a2b7f8c6eb70 [0.00020503997802734 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:2051 */ FROM tmp_base_goods g INNER JOIN pod_good_filter gf0 ON g.id = gf0.id_good AND gf0.filter_id_value in (30) WHERE g.is_present AND 1 UNION SELECT MIN(go.price) AS min_price, MAX(go.price) AS max_price /* cats:2051 */ 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 (30) WHERE 1 ) A [0.0006568431854248 sec]
SELECT g.id /* cats:2051 */,if(g.is_present and g.price >= '419' and g.price <= '8059',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 >= '419' and g.price <= '8059',greatest(g.price,ifnull(max(pcg.price),g.price)),ifnull(max(pcg.price),g.price)) max_sort_price FROM tmp_base_goods g LEFT JOIN pod_cat_good pcg ON pcg.entry=g.id AND pcg.is_present=1 AND pcg.price >= '419' AND pcg.price <= '8059' WHERE g.id IN (381074,350419,481667) GROUP BY g.id ORDER BY g.ordr desc LIMIT 32, 32 [0.0024988651275635 sec]