SELECT url_to, r404
FROM pod_redirect
WHERE BINARY REPLACE(url_from,'/ru/','/') = '/kastryuli/pan_20-pyrex-lessner-ringel-risoli-flonal-iq.html' LIMIT 0,1 [0.00067400932312012 sec]
SELECT pod_filter.id,pod_filter.url FROM pod_filter WHERE BINARY pod_filter.url IN ('pan_20','pyrex','lessner','ringel','risoli','flonal','iq') order by url [0.001878023147583 sec]
SELECT pod_sub_icon.id,pod_sub_icon.url FROM pod_sub_icon WHERE BINARY pod_sub_icon.url IN ('pan_20','pyrex','lessner','ringel','risoli','flonal','iq') order by url [0.0015349388122559 sec]
select id,url from pod_cat_brand where BINARY url IN ('pan_20','pyrex','lessner','ringel','risoli','flonal','iq') [0.0020689964294434 sec]
SELECT id, url FROM pod_filter WHERE url IN ('pan_20','pyrex','lessner','ringel','risoli','flonal','iq') [0.0013720989227295 sec]
SELECT id, url FROM pod_sub_icon WHERE url IN ('pan_20','pyrex','lessner','ringel','risoli','flonal','iq') [0.0012168884277344 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 (92)
WHERE g.cat_id IN (115) AND
g.brand_id IN (334,330,2445,2552,1415,2500) 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 (92)
WHERE dc.dop_cat_id IN (115) AND
g.brand_id IN (334,330,2445,2552,1415,2500) 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 go.id = gf0.id_good AND gf0.filter_id_value in (92)
WHERE g.cat_id IN (115) AND
g.brand_id IN (334,330,2445,2552,1415,2500) 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 go.id = gf0.id_good AND gf0.filter_id_value in (92)
WHERE dc.dop_cat_id IN (115) AND
g.brand_id IN (334,330,2445,2552,1415,2500) AND
go.is_present AND go.is_active AND g.is_present_all_mods AND g.is_active
[0.024127006530762 sec]
CREATE TEMPORARY TABLE temp_brand_counts_6a2a7c9633d93 (
id INT,
gid INT,
INDEX idx_id (id),
INDEX idx_gid (gid)
) [0.00078082084655762 sec]
INSERT INTO temp_brand_counts_6a2a7c9633d93 (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 (92)
WHERE g.cat_id IN (115) 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 (92)
WHERE dc.dop_cat_id IN (115) 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 go.id = gf0.id_good AND gf0.filter_id_value in (92)
WHERE g.cat_id IN (115) 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 go.id = gf0.id_good AND gf0.filter_id_value in (92)
WHERE dc.dop_cat_id IN (115) 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 (334,330,2445,2552,1415,2500) [0.10468292236328 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_6a2a7c9633d93
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.0011069774627686 sec]
DROP TEMPORARY TABLE IF EXISTS temp_brand_counts_6a2a7c9633d93 [0.00027012825012207 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 (92)
WHERE g.cat_id IN (115) AND
g.brand_id IN (334,330,2445,2552,1415,2500) 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 (92)
WHERE dc.dop_cat_id IN (115) AND
g.brand_id IN (334,330,2445,2552,1415,2500) 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 go.id = gf0.id_good AND gf0.filter_id_value in (92)
WHERE g.cat_id IN (115) AND
g.brand_id IN (334,330,2445,2552,1415,2500) 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 go.id = gf0.id_good AND gf0.filter_id_value in (92)
WHERE dc.dop_cat_id IN (115) AND
g.brand_id IN (334,330,2445,2552,1415,2500) AND
go.is_present AND go.is_active AND g.is_present_all_mods AND g.is_active
) A
[0.0070159435272217 sec]
SELECT g.id, if(g.is_present and g.price >= '1006' and g.price <= '5149',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 >= '1006' and g.price <= '5149',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 >= '1006' and pcg.price <= '5149' WHERE g.id in (455460,361871,420391,420395,420450,438936,438939,438958,461341,215358,444714,444206,471372,476574,477636,477639,482327,482330,486623,500373)
GROUP BY g.id
ORDER BY g.ordr desc
LIMIT 0, 32 [0.0059840679168701 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 >= '1006' and g.price <= '5149',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 >= '1006' and g.price <= '5149',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 >= '1006' and pcg.price <= '5149')
WHERE g.id in (444206,444714,215358,420450,471372,482327,361871,438936,476574,482330,420391,438939,455460,477636,486623,420395,438958,461341,477639,500373)
GROUP BY g.id
ORDER BY g.ordr desc [0.0048758983612061 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.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 = '215358' AND g.is_present = '1' AND g.is_active = '1'
ORDER BY g.is_present DESC [0.00081491470336914 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.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 = '420450' AND g.is_present = '1' AND g.is_active = '1'
ORDER BY g.is_present DESC [0.00053000450134277 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.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 = '438936' AND g.is_present = '1' AND g.is_active = '1'
ORDER BY g.is_present DESC [0.00048208236694336 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.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 = '500373' AND g.is_present = '1' AND g.is_active = '1'
ORDER BY g.is_present DESC [0.00058817863464355 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.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 = '461341' AND g.is_present = '1' AND g.is_active = '1'
ORDER BY g.is_present DESC [0.00069499015808105 sec]
SELECT distinct 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_cat_good g
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_goods_group_goods ggd2 ON ggd2.good_id = 461341
LEFT JOIN pod_goods_group_goods ggd ON ggd2.goods_group_id=ggd.goods_group_id
LEFT JOIN pod_goods_group gg ON ggd.goods_group_id=gg.id
LEFT JOIN pod_colors pc ON pc.id=ggd.color_id
WHERE
g.id=ggd.good_id
order by g.id= 461341 desc, g.is_present_all_mods desc [0.0014290809631348 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.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 = '471372' AND g.is_present = '1' AND g.is_active = '1'
ORDER BY g.is_present DESC [0.00052595138549805 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.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 = '476574' AND g.is_present = '1' AND g.is_active = '1'
ORDER BY g.is_present DESC [0.00055599212646484 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.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 = '477636' AND g.is_present = '1' AND g.is_active = '1'
ORDER BY g.is_present DESC [0.00052595138549805 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.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 = '477639' AND g.is_present = '1' AND g.is_active = '1'
ORDER BY g.is_present DESC [0.00046896934509277 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.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 = '482327' AND g.is_present = '1' AND g.is_active = '1'
ORDER BY g.is_present DESC [0.00044083595275879 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.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 = '482330' AND g.is_present = '1' AND g.is_active = '1'
ORDER BY g.is_present DESC [0.00041699409484863 sec]
SELECT distinct 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_cat_good g
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_goods_group_goods ggd2 ON ggd2.good_id = 482330
LEFT JOIN pod_goods_group_goods ggd ON ggd2.goods_group_id=ggd.goods_group_id
LEFT JOIN pod_goods_group gg ON ggd.goods_group_id=gg.id
LEFT JOIN pod_colors pc ON pc.id=ggd.color_id
WHERE
g.id=ggd.good_id
order by g.id= 482330 desc, g.is_present_all_mods desc [0.0007171630859375 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.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 = '486623' AND g.is_present = '1' AND g.is_active = '1'
ORDER BY g.is_present DESC [0.00038695335388184 sec]
SELECT name_ua AS name, url FROM pod_cat_brand WHERE id='334.330.2445.2552.1415.2500' [0.00023913383483887 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_A_cp6op7unairpo6lh12067309iu_6a2a7c965ef76;
CREATE TEMPORARY TABLE tmp_A_cp6op7unairpo6lh12067309iu_6a2a7c965ef76 (
id INT NOT NULL,
PRIMARY KEY (id)
) ENGINE=MEMORY; [0.00038409233093262 sec]
INSERT INTO tmp_A_cp6op7unairpo6lh12067309iu_6a2a7c965ef76 (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 (92)
WHERE g.cat_id IN (115) AND
g.brand_id IN (334,330,2445,2552,1415,2500) 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 (92)
WHERE dc.dop_cat_id IN (115) AND
g.brand_id IN (334,330,2445,2552,1415,2500) 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 go.id = gf0.id_good AND gf0.filter_id_value in (92)
WHERE g.cat_id IN (115) AND
g.brand_id IN (334,330,2445,2552,1415,2500) 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 go.id = gf0.id_good AND gf0.filter_id_value in (92)
WHERE dc.dop_cat_id IN (115) AND
g.brand_id IN (334,330,2445,2552,1415,2500) AND
go.is_present AND go.is_active AND g.is_present_all_mods AND g.is_active
) A [0.0098631381988525 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_pairs_cp6op7unairpo6lh12067309iu_6a2a7c965ef76;
CREATE TEMPORARY TABLE tmp_pairs_cp6op7unairpo6lh12067309iu_6a2a7c965ef76 (
goods_id INT NOT NULL,
filter_id INT NOT NULL,
PRIMARY KEY (goods_id, filter_id)
) ENGINE=MEMORY; [0.00037503242492676 sec]
INSERT INTO tmp_pairs_cp6op7unairpo6lh12067309iu_6a2a7c965ef76 (goods_id, filter_id)
SELECT DISTINCT
A.id AS goods_id,
f.id AS filter_id
FROM tmp_A_cp6op7unairpo6lh12067309iu_6a2a7c965ef76 A
INNER JOIN pod_good_filter gf ON A.id = gf.id_good AND gf.filter_id_value NOT IN (92)
INNER JOIN pod_cat_filter cf ON gf.filter_id = cf.filter_id AND cf.category_id = 115
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.012216806411743 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_counts_cp6op7unairpo6lh12067309iu_6a2a7c965ef76;
CREATE TEMPORARY TABLE tmp_counts_cp6op7unairpo6lh12067309iu_6a2a7c965ef76 (
filter_id INT NOT NULL PRIMARY KEY,
count INT NOT NULL
) ENGINE=MEMORY; [0.00034809112548828 sec]
INSERT IGNORE INTO tmp_counts_cp6op7unairpo6lh12067309iu_6a2a7c965ef76 (filter_id, count)
SELECT
p.filter_id,
COUNT(*) AS count
FROM tmp_pairs_cp6op7unairpo6lh12067309iu_6a2a7c965ef76 p
GROUP BY p.filter_id [0.00035786628723145 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_cp6op7unairpo6lh12067309iu_6a2a7c965ef76 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.00033211708068848 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_A_cp6op7unairpo6lh12067309iu_6a2a7c965ef76 [0.00022697448730469 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_pairs_cp6op7unairpo6lh12067309iu_6a2a7c965ef76 [9.2029571533203E-5 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_counts_cp6op7unairpo6lh12067309iu_6a2a7c965ef76 [0.0001220703125 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_A_cp6op7unairpo6lh12067309iu_6a2a7c9665404;
CREATE TEMPORARY TABLE tmp_A_cp6op7unairpo6lh12067309iu_6a2a7c9665404 (
id INT NOT NULL,
entry INT NOT NULL,
PRIMARY KEY (id),
KEY idx_entry (entry)
) ENGINE=MEMORY; [0.00020003318786621 sec]
INSERT INTO tmp_A_cp6op7unairpo6lh12067309iu_6a2a7c9665404 (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 (92)
WHERE g.cat_id IN (115) AND
g.brand_id IN (334,330,2445,2552,1415,2500) 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 (92)
WHERE dc.dop_cat_id IN (115) AND
g.brand_id IN (334,330,2445,2552,1415,2500) 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 go.id = gf0.id_good AND gf0.filter_id_value in (92)
WHERE g.cat_id IN (115) AND
g.brand_id IN (334,330,2445,2552,1415,2500) 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 go.id = gf0.id_good AND gf0.filter_id_value in (92)
WHERE dc.dop_cat_id IN (115) AND
g.brand_id IN (334,330,2445,2552,1415,2500) AND
go.is_present AND go.is_active AND g.is_present_all_mods AND g.is_active
) A [0.0023579597473145 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_pairs_cp6op7unairpo6lh12067309iu_6a2a7c9665404;
CREATE TEMPORARY TABLE tmp_pairs_cp6op7unairpo6lh12067309iu_6a2a7c9665404 (
goods_id INT NOT NULL,
filter_id INT NOT NULL,
PRIMARY KEY (goods_id, filter_id)
) ENGINE=MEMORY; [0.00023317337036133 sec]
INSERT INTO tmp_pairs_cp6op7unairpo6lh12067309iu_6a2a7c9665404 (goods_id, filter_id)
SELECT DISTINCT
A.entry AS goods_id,
f.id AS filter_id
FROM tmp_A_cp6op7unairpo6lh12067309iu_6a2a7c9665404 A
INNER JOIN pod_good_filter gf ON A.id = gf.id_good AND gf.filter_id_value NOT IN (92)
INNER JOIN pod_cat_filter cf ON gf.filter_id = cf.filter_id AND cf.category_id = 115
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.0010149478912354 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_counts_cp6op7unairpo6lh12067309iu_6a2a7c9665404;
CREATE TEMPORARY TABLE tmp_counts_cp6op7unairpo6lh12067309iu_6a2a7c9665404 (
filter_id INT NOT NULL PRIMARY KEY,
count INT NOT NULL
) ENGINE=MEMORY; [0.00033783912658691 sec]
INSERT IGNORE INTO tmp_counts_cp6op7unairpo6lh12067309iu_6a2a7c9665404 (filter_id, count)
SELECT
p.filter_id,
COUNT(*) AS count
FROM tmp_pairs_cp6op7unairpo6lh12067309iu_6a2a7c9665404 p
GROUP BY p.filter_id [0.00038385391235352 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_cp6op7unairpo6lh12067309iu_6a2a7c9665404 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.00043201446533203 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_A_cp6op7unairpo6lh12067309iu_6a2a7c9665404 [0.00029611587524414 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_pairs_cp6op7unairpo6lh12067309iu_6a2a7c9665404 [0.00015997886657715 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_counts_cp6op7unairpo6lh12067309iu_6a2a7c9665404 [0.00017786026000977 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_A_cp6op7unairpo6lh12067309iu_6a2a7c9666f46;
CREATE TEMPORARY TABLE tmp_A_cp6op7unairpo6lh12067309iu_6a2a7c9666f46 (
id INT NOT NULL,
entry INT NOT NULL,
PRIMARY KEY (id),
KEY idx_entry (entry)
) ENGINE=MEMORY [0.0002589225769043 sec]
INSERT INTO tmp_A_cp6op7unairpo6lh12067309iu_6a2a7c9666f46 (id, entry) SELECT A.id, A.entry FROM (
SELECT g.id as id, g.id as entry -- основні
FROM pod_cat_good g USE INDEX (idx_cat_entry_active_present)
WHERE g.cat_id IN (115) AND
g.brand_id IN (334,330,2445,2552,1415,2500) 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
WHERE dc.dop_cat_id IN (115) AND
g.brand_id IN (334,330,2445,2552,1415,2500) 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
WHERE g.cat_id IN (115) AND
g.brand_id IN (334,330,2445,2552,1415,2500) 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
WHERE dc.dop_cat_id IN (115) AND
g.brand_id IN (334,330,2445,2552,1415,2500) AND
go.is_present AND go.is_active AND g.is_present_all_mods AND g.is_active
) A [0.010100126266479 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_pairs_cp6op7unairpo6lh12067309iu_6a2a7c9666f46;
CREATE TEMPORARY TABLE tmp_pairs_cp6op7unairpo6lh12067309iu_6a2a7c9666f46 (
goods_id INT NOT NULL,
filter_id INT NOT NULL,
PRIMARY KEY (goods_id, filter_id)
) ENGINE=MEMORY [0.00041604042053223 sec]
INSERT INTO tmp_pairs_cp6op7unairpo6lh12067309iu_6a2a7c9666f46 (goods_id, filter_id)
SELECT DISTINCT
A.entry AS goods_id,
f.id AS filter_id
FROM tmp_A_cp6op7unairpo6lh12067309iu_6a2a7c9666f46 A
INNER JOIN pod_good_filter gf ON A.id = gf.id_good AND gf.filter_id = 86
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.014414072036743 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_counts_cp6op7unairpo6lh12067309iu_6a2a7c9666f46;
CREATE TEMPORARY TABLE tmp_counts_cp6op7unairpo6lh12067309iu_6a2a7c9666f46 (
filter_id INT NOT NULL PRIMARY KEY,
count INT NOT NULL
) ENGINE=MEMORY [0.00041604042053223 sec]
INSERT INTO tmp_counts_cp6op7unairpo6lh12067309iu_6a2a7c9666f46 (filter_id, count)
SELECT
p.filter_id,
COUNT(*) AS count
FROM tmp_pairs_cp6op7unairpo6lh12067309iu_6a2a7c9666f46 p
GROUP BY p.filter_id [0.00048303604125977 sec]
INSERT INTO tmp_counts_cp6op7unairpo6lh12067309iu_6a2a7c9666f46 (filter_id, count)
SELECT pf.id, 0
FROM pod_filter pf
LEFT JOIN tmp_counts_cp6op7unairpo6lh12067309iu_6a2a7c9666f46 c ON c.filter_id = pf.id
WHERE pf.id in (92) AND c.filter_id IS NULL [0.00030016899108887 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_cp6op7unairpo6lh12067309iu_6a2a7c9666f46 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.00047612190246582 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_A_cp6op7unairpo6lh12067309iu_6a2a7c9666f46 [0.00030303001403809 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_pairs_cp6op7unairpo6lh12067309iu_6a2a7c9666f46 [0.00018596649169922 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_counts_cp6op7unairpo6lh12067309iu_6a2a7c9666f46 [0.00015497207641602 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_A_cp6op7unairpo6lh12067309iu_6a2a7c966e0f7;
CREATE TEMPORARY TABLE tmp_A_cp6op7unairpo6lh12067309iu_6a2a7c966e0f7 (
entry INT NOT NULL,
sub_icon_id INT NOT NULL,
PRIMARY KEY (entry, sub_icon_id)
) ENGINE=MEMORY; [0.00030708312988281 sec]
INSERT IGNORE INTO tmp_A_cp6op7unairpo6lh12067309iu_6a2a7c966e0f7 (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 (92)
WHERE g.cat_id IN (115) AND
g.brand_id IN (334,330,2445,2552,1415,2500) 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 (92)
WHERE dc.dop_cat_id IN (115) AND
g.brand_id IN (334,330,2445,2552,1415,2500) 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 go.id = gf0.id_good AND gf0.filter_id_value in (92)
WHERE g.cat_id IN (115) AND
g.brand_id IN (334,330,2445,2552,1415,2500) 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 go.id = gf0.id_good AND gf0.filter_id_value in (92)
WHERE dc.dop_cat_id IN (115) AND
g.brand_id IN (334,330,2445,2552,1415,2500) AND
go.is_present AND go.is_active AND g.is_present_all_mods AND g.is_active
) A [0.0046770572662354 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_counts_cp6op7unairpo6lh12067309iu_6a2a7c966e0f7;
CREATE TEMPORARY TABLE tmp_counts_cp6op7unairpo6lh12067309iu_6a2a7c966e0f7 (
sub_icon_id INT NOT NULL PRIMARY KEY,
count INT NOT NULL
) ENGINE=MEMORY; [0.00037002563476562 sec]
INSERT IGNORE INTO tmp_counts_cp6op7unairpo6lh12067309iu_6a2a7c966e0f7 (sub_icon_id, count)
SELECT
sub_icon_id,
COUNT(DISTINCT entry) AS count
FROM (
SELECT A.entry, A.sub_icon_id
FROM tmp_A_cp6op7unairpo6lh12067309iu_6a2a7c966e0f7 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.00050878524780273 sec]
SELECT
c.sub_icon_id AS id,
c.count,
si.entry,
si.name_ua AS name,
si.url
FROM tmp_counts_cp6op7unairpo6lh12067309iu_6a2a7c966e0f7 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.00024604797363281 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_A_cp6op7unairpo6lh12067309iu_6a2a7c966e0f7 [0.00020694732666016 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_counts_cp6op7unairpo6lh12067309iu_6a2a7c966e0f7 [0.00010204315185547 sec]
Низькі ціни на Каструлі Pyrex ... IQ (Пирeкс ... ІQ) - великий вибір, фото. Купити Каструлі Pyrex ... IQ (Пирeкс ... ІQ) в Києві і Україні
Ваше замовлення оформлено! На e-mail відправлено лист з підтвердженням Найближчим часом з Вами зв'яжеться менеджер Дякємо за замовлення!
Ваш профіль буде видалений назавжди. Його не можна відновити. Продовжити?
Залиште свій номер телефону і наші менеджери Вам зателефонують
Оплату картами Visa і MasterCard забезпечує сервіс онлайн-платежів Portmone.com. Безпека оплати підтверджена міжнародним аудитом PCI DSS. Служба підтримки: тел. +380 (44) 2000902