SELECT url_to, r404 FROM pod_redirect WHERE BINARY REPLACE(url_from,'/ru/','/') = '/cars/cobi-wader-driven.html' LIMIT 0,1 [0.00063490867614746 sec]
select id,name,url, is_active from pod_cat_category where url = 'cars' [0.00046396255493164 sec]
SELECT pod_filter.id,pod_filter.url FROM pod_filter WHERE BINARY pod_filter.url IN ('cobi','wader','driven') order by url [0.0015740394592285 sec]
SELECT pod_sub_icon.id,pod_sub_icon.url FROM pod_sub_icon WHERE BINARY pod_sub_icon.url IN ('cobi','wader','driven') order by url [0.0012028217315674 sec]
select id,url from pod_cat_brand where BINARY url = 'cobi-wader-driven' [0.0019879341125488 sec]
select id,url from pod_cat_brand where url = 'cobi-wader-driven' [0.00042986869812012 sec]
select id,url from pod_cat_brand where url in ('cobi','wader','driven') [0.00066399574279785 sec]
select id from pod_structure where link='catalogue/683' and active='1' AND lang_ru='1' [0.00040578842163086 sec]
SELECT c.id, c.super_category_id, c.entry, c.name AS name, c.title AS cat_title, c.metakwds AS cat_kwds, c.metadesc AS cat_metadesc, c.descr AS cat_descr, cc.name AS parent_name, cc.url AS parent_url, c.url as curl, cc.image AS parent_image, c.seo_text AS seo_text, c.seo_text_mobile AS seo_text_mobile, c.action_text AS action_text, c.view_type, c.is_delivery_custom, c.hide_subcat_sidebar, c.image FROM pod_cat_category c LEFT JOIN pod_cat_category cc ON cc.id=c.entry WHERE c.id='683' [0.00055193901062012 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='682' [0.00045084953308105 sec]
SELECT id FROM pod_cat_category WHERE entry='683' [0.00048184394836426 sec]
SELECT g.id -- основні FROM pod_cat_good g USE INDEX (idx_cat_entry_active_present) WHERE g.cat_id IN (683) AND g.brand_id IN (911,1541,1178) 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 (683) AND g.brand_id IN (911,1541,1178) AND g.is_present_all_mods AND g.entry =0 AND g.is_active [0.033607006072998 sec]
CREATE TEMPORARY TABLE temp_brand_counts_6a2aa2303f3e9 ( id INT, gid INT, INDEX idx_id (id), INDEX idx_gid (gid) ) [0.0004580020904541 sec]
INSERT INTO temp_brand_counts_6a2aa2303f3e9 (id, gid) SELECT g.brand_id AS id, g.id AS gid -- основні FROM pod_cat_good g USE INDEX (idx_cat_entry_active_present) WHERE g.cat_id IN (683) 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 WHERE dc.dop_cat_id IN (683) 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 (911,1541,1178) [0.0033500194549561 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_6a2aa2303f3e9 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.0009000301361084 sec]
DROP TEMPORARY TABLE IF EXISTS temp_brand_counts_6a2aa2303f3e9 [0.00021600723266602 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 USE INDEX (idx_cat_entry_active_present) WHERE g.cat_id IN (683) AND g.brand_id IN (911,1541,1178) 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 WHERE dc.dop_cat_id IN (683) AND g.brand_id IN (911,1541,1178) 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 WHERE g.cat_id IN (683) AND g.brand_id IN (911,1541,1178) 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 WHERE dc.dop_cat_id IN (683) AND g.brand_id IN (911,1541,1178) AND go.is_present AND go.is_active AND g.is_present_all_mods AND g.is_active ) A [0.011384010314941 sec]
SELECT g.id, if(g.is_present and g.price >= '289' and g.price <= '2499',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 >= '289' and g.price <= '2499',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 >= '289' and pcg.price <= '2499' WHERE g.id in (298752,298764,474034,474046,474061,498794,498797,498800,498804,498809,498811,498812,498813,498815,498816,498817,498818,498820,498821,498822,498823,498824,498825,498826,498827,498828,498829,498831,498832,498833,498834,498835,498836) GROUP BY g.id ORDER BY g.ordr desc LIMIT 0, 32 [0.006493091583252 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 >= '289' and g.price <= '2499',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 >= '289' and g.price <= '2499',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 >= '289' and pcg.price <= '2499') WHERE g.id in (298752,474061,498804,498813,498818,498823,498827,498832,498836,298764,498794,498809,498815,498820,498824,498828,498833,474034,498797,498811,498816,498821,498825,498829,498834,474046,498800,498812,498817,498822,498826,498831) GROUP BY g.id ORDER BY g.ordr desc [0.0037610530853271 sec]