SELECT url_to, r404
FROM pod_redirect
WHERE BINARY REPLACE(url_from,'/ru/','/') = '/14_fevralya/ellen-devays_maker-marcel-tescoma-certified_international.html' LIMIT 0,1 [0.00034117698669434 sec]
SELECT pod_filter.id,pod_filter.url FROM pod_filter WHERE BINARY pod_filter.url IN ('ellen','devays_maker','marcel','tescoma','certified_international') order by url [0.00075411796569824 sec]
SELECT pod_sub_icon.id,pod_sub_icon.url FROM pod_sub_icon WHERE BINARY pod_sub_icon.url IN ('ellen','devays_maker','marcel','tescoma','certified_international') order by url [0.00055980682373047 sec]
select id,url from pod_cat_brand where BINARY url = 'ellen-devays_maker-marcel-tescoma-certified_international' [0.00090289115905762 sec]
select id,url from pod_cat_brand where url = 'ellen-devays_maker-marcel-tescoma-certified_international' [0.00019693374633789 sec]
select id,url from pod_cat_brand where url in ('ellen','devays_maker','marcel','tescoma','certified_international') [0.00039315223693848 sec]
SELECT g.id -- основні
FROM pod_cat_good g USE INDEX (idx_cat_entry_active_present)
WHERE g.cat_id IN (883,884,885,886,887,1165,1163,1166,2172,2173,888,889,1167,1375) AND
g.brand_id IN (2288,1405,1152,1744,1984) 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 (883,884,885,886,887,1165,1163,1166,2172,2173,888,889,1167,1375) AND
g.brand_id IN (2288,1405,1152,1744,1984) AND
g.is_present_all_mods AND g.entry =0 AND g.is_active
[0.0094320774078369 sec]
CREATE TEMPORARY TABLE temp_brand_counts_6a2aa157809fc (
id INT,
gid INT,
INDEX idx_id (id),
INDEX idx_gid (gid)
) [0.00038504600524902 sec]
INSERT INTO temp_brand_counts_6a2aa157809fc (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 (883,884,885,886,887,1165,1163,1166,2172,2173,888,889,1167,1375) 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 (883,884,885,886,887,1165,1163,1166,2172,2173,888,889,1167,1375) 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 (2288,1405,1152,1744,1984) [0.36365389823914 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_6a2aa157809fc
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.0021698474884033 sec]
DROP TEMPORARY TABLE IF EXISTS temp_brand_counts_6a2aa157809fc [0.00031280517578125 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 (883,884,885,886,887,1165,1163,1166,2172,2173,888,889,1167,1375) AND
g.brand_id IN (2288,1405,1152,1744,1984) 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 (883,884,885,886,887,1165,1163,1166,2172,2173,888,889,1167,1375) AND
g.brand_id IN (2288,1405,1152,1744,1984) 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 (883,884,885,886,887,1165,1163,1166,2172,2173,888,889,1167,1375) AND
g.brand_id IN (2288,1405,1152,1744,1984) 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 (883,884,885,886,887,1165,1163,1166,2172,2173,888,889,1167,1375) AND
g.brand_id IN (2288,1405,1152,1744,1984) AND
go.is_present AND go.is_active AND g.is_present_all_mods AND g.is_active
) A
[0.053467035293579 sec]
SELECT g.id, if(g.is_present and g.price >= '337' and g.price <= '2465',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 >= '337' and g.price <= '2465',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 >= '337' and pcg.price <= '2465' WHERE g.id in (296715,301156,375097,409201,424877,434518,459243,459251,465235,465240,465253,466021,466029,488471,383308,444403,444463,444481,444491,444670,466159,466161,466166,409204,444381,444593,444640,447215,453553)
GROUP BY g.id
ORDER BY g.ordr desc
LIMIT 0, 32 [0.0036909580230713 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 >= '337' and g.price <= '2465',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 >= '337' and g.price <= '2465',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 >= '337' and pcg.price <= '2465')
WHERE g.id in (459251,409204,409201,466021,453553,459243,434518,383308,296715,444381,444491,447215,465235,466029,488471,301156,444403,444593,465240,466159,375097,424877,444463,444640,465253,466161,444481,444670,466166)
GROUP BY g.id
ORDER BY g.ordr desc [0.0042099952697754 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 AS name, g.price, g.old_price, g.artikul, g.sub_icon_id, g.is_present, si.name 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 = '375097' AND g.is_active = '1'
ORDER BY g.is_present DESC [0.00069379806518555 sec]
SELECT distinct 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_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 = 375097
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= 375097 desc, g.is_present_all_mods desc [0.0022568702697754 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 AS name, g.price, g.old_price, g.artikul, g.sub_icon_id, g.is_present, si.name 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 = '444463' AND g.is_active = '1'
ORDER BY g.is_present DESC [0.00064301490783691 sec]
SELECT distinct 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_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 = 444463
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= 444463 desc, g.is_present_all_mods desc [0.00061297416687012 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 AS name, g.price, g.old_price, g.artikul, g.sub_icon_id, g.is_present, si.name 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 = '444640' AND g.is_active = '1'
ORDER BY g.is_present DESC [0.00059294700622559 sec]
SELECT distinct 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_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 = 444640
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= 444640 desc, g.is_present_all_mods desc [0.0007472038269043 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 AS name, g.price, g.old_price, g.artikul, g.sub_icon_id, g.is_present, si.name 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 = '465235' AND g.is_active = '1'
ORDER BY g.is_present DESC [0.0005190372467041 sec]
SELECT distinct 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_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 = 465235
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= 465235 desc, g.is_present_all_mods desc [0.00082302093505859 sec]
SELECT name AS name, url FROM pod_cat_brand WHERE id in (2288,1405,1152,1744,1984) [0.00037002563476562 sec]
SELECT name AS name, url FROM pod_cat_brand WHERE id='2288.1405.1152.1744.1984' [0.00021100044250488 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_A_8hh1lpor48o245cf1dgecq1spg_6a2aa15802595;
CREATE TEMPORARY TABLE tmp_A_8hh1lpor48o245cf1dgecq1spg_6a2aa15802595 (
id INT NOT NULL,
PRIMARY KEY (id)
) ENGINE=MEMORY; [0.00034308433532715 sec]
INSERT INTO tmp_A_8hh1lpor48o245cf1dgecq1spg_6a2aa15802595 (id) SELECT A.id FROM (
SELECT g.id -- основні
FROM pod_cat_good g USE INDEX (idx_cat_entry_active_present)
WHERE g.cat_id IN (883,884,885,886,887,1165,1163,1166,2172,2173,888,889,1167,1375) AND
g.brand_id IN (2288,1405,1152,1744,1984) 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 (883,884,885,886,887,1165,1163,1166,2172,2173,888,889,1167,1375) AND
g.brand_id IN (2288,1405,1152,1744,1984) AND
g.is_present_all_mods AND g.entry =0 AND g.is_active
) A [0.19284796714783 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_pairs_8hh1lpor48o245cf1dgecq1spg_6a2aa15802595;
CREATE TEMPORARY TABLE tmp_pairs_8hh1lpor48o245cf1dgecq1spg_6a2aa15802595 (
goods_id INT NOT NULL,
filter_id INT NOT NULL,
PRIMARY KEY (goods_id, filter_id)
) ENGINE=MEMORY; [0.00041699409484863 sec]
INSERT INTO tmp_pairs_8hh1lpor48o245cf1dgecq1spg_6a2aa15802595 (goods_id, filter_id)
SELECT DISTINCT
A.id AS goods_id,
f.id AS filter_id
FROM tmp_A_8hh1lpor48o245cf1dgecq1spg_6a2aa15802595 A
INNER JOIN pod_good_filter gf ON A.id = gf.id_good
INNER JOIN pod_cat_filter cf ON gf.filter_id = cf.filter_id AND cf.category_id = 883
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.00049686431884766 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_counts_8hh1lpor48o245cf1dgecq1spg_6a2aa15802595;
CREATE TEMPORARY TABLE tmp_counts_8hh1lpor48o245cf1dgecq1spg_6a2aa15802595 (
filter_id INT NOT NULL PRIMARY KEY,
count INT NOT NULL
) ENGINE=MEMORY; [0.00023484230041504 sec]
INSERT IGNORE INTO tmp_counts_8hh1lpor48o245cf1dgecq1spg_6a2aa15802595 (filter_id, count)
SELECT
p.filter_id,
COUNT(*) AS count
FROM tmp_pairs_8hh1lpor48o245cf1dgecq1spg_6a2aa15802595 p
GROUP BY p.filter_id [0.00024700164794922 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_8hh1lpor48o245cf1dgecq1spg_6a2aa15802595 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.00022101402282715 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_A_8hh1lpor48o245cf1dgecq1spg_6a2aa15802595 [0.00021004676818848 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_pairs_8hh1lpor48o245cf1dgecq1spg_6a2aa15802595 [0.00010180473327637 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_counts_8hh1lpor48o245cf1dgecq1spg_6a2aa15802595 [8.9883804321289E-5 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_A_8hh1lpor48o245cf1dgecq1spg_6a2aa1583263e;
CREATE TEMPORARY TABLE tmp_A_8hh1lpor48o245cf1dgecq1spg_6a2aa1583263e (
id INT NOT NULL,
entry INT NOT NULL,
PRIMARY KEY (id),
KEY idx_entry (entry)
) ENGINE=MEMORY; [0.0001990795135498 sec]
INSERT INTO tmp_A_8hh1lpor48o245cf1dgecq1spg_6a2aa1583263e (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 (883,884,885,886,887,1165,1163,1166,2172,2173,888,889,1167,1375) AND
g.brand_id IN (2288,1405,1152,1744,1984) 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 (883,884,885,886,887,1165,1163,1166,2172,2173,888,889,1167,1375) AND
g.brand_id IN (2288,1405,1152,1744,1984) 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 (883,884,885,886,887,1165,1163,1166,2172,2173,888,889,1167,1375) AND
g.brand_id IN (2288,1405,1152,1744,1984) 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 (883,884,885,886,887,1165,1163,1166,2172,2173,888,889,1167,1375) AND
g.brand_id IN (2288,1405,1152,1744,1984) AND
go.is_present AND go.is_active AND g.is_present_all_mods AND g.is_active
) A [0.015180826187134 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_pairs_8hh1lpor48o245cf1dgecq1spg_6a2aa1583263e;
CREATE TEMPORARY TABLE tmp_pairs_8hh1lpor48o245cf1dgecq1spg_6a2aa1583263e (
goods_id INT NOT NULL,
filter_id INT NOT NULL,
PRIMARY KEY (goods_id, filter_id)
) ENGINE=MEMORY; [0.00031399726867676 sec]
INSERT INTO tmp_pairs_8hh1lpor48o245cf1dgecq1spg_6a2aa1583263e (goods_id, filter_id)
SELECT DISTINCT
A.entry AS goods_id,
f.id AS filter_id
FROM tmp_A_8hh1lpor48o245cf1dgecq1spg_6a2aa1583263e A
INNER JOIN pod_good_filter gf ON A.id = gf.id_good
INNER JOIN pod_cat_filter cf ON gf.filter_id = cf.filter_id AND cf.category_id = 883
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.00041794776916504 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_counts_8hh1lpor48o245cf1dgecq1spg_6a2aa1583263e;
CREATE TEMPORARY TABLE tmp_counts_8hh1lpor48o245cf1dgecq1spg_6a2aa1583263e (
filter_id INT NOT NULL PRIMARY KEY,
count INT NOT NULL
) ENGINE=MEMORY; [0.00022482872009277 sec]
INSERT IGNORE INTO tmp_counts_8hh1lpor48o245cf1dgecq1spg_6a2aa1583263e (filter_id, count)
SELECT
p.filter_id,
COUNT(*) AS count
FROM tmp_pairs_8hh1lpor48o245cf1dgecq1spg_6a2aa1583263e p
GROUP BY p.filter_id [0.00018787384033203 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_8hh1lpor48o245cf1dgecq1spg_6a2aa1583263e 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.00017213821411133 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_A_8hh1lpor48o245cf1dgecq1spg_6a2aa1583263e [0.00026416778564453 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_pairs_8hh1lpor48o245cf1dgecq1spg_6a2aa1583263e [9.5129013061523E-5 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_counts_8hh1lpor48o245cf1dgecq1spg_6a2aa1583263e [0.00025510787963867 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_A_8hh1lpor48o245cf1dgecq1spg_6a2aa15837028;
CREATE TEMPORARY TABLE tmp_A_8hh1lpor48o245cf1dgecq1spg_6a2aa15837028 (
entry INT NOT NULL,
sub_icon_id INT NOT NULL,
PRIMARY KEY (entry, sub_icon_id)
) ENGINE=MEMORY; [0.00033998489379883 sec]
INSERT IGNORE INTO tmp_A_8hh1lpor48o245cf1dgecq1spg_6a2aa15837028 (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 USE INDEX (idx_cat_entry_active_present)
WHERE g.cat_id IN (883,884,885,886,887,1165,1163,1166,2172,2173,888,889,1167,1375) AND
g.brand_id IN (2288,1405,1152,1744,1984) 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
WHERE dc.dop_cat_id IN (883,884,885,886,887,1165,1163,1166,2172,2173,888,889,1167,1375) AND
g.brand_id IN (2288,1405,1152,1744,1984) 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
WHERE g.cat_id IN (883,884,885,886,887,1165,1163,1166,2172,2173,888,889,1167,1375) AND
g.brand_id IN (2288,1405,1152,1744,1984) 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
WHERE dc.dop_cat_id IN (883,884,885,886,887,1165,1163,1166,2172,2173,888,889,1167,1375) AND
g.brand_id IN (2288,1405,1152,1744,1984) AND
go.is_present AND go.is_active AND g.is_present_all_mods AND g.is_active
) A [0.034456014633179 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_counts_8hh1lpor48o245cf1dgecq1spg_6a2aa15837028;
CREATE TEMPORARY TABLE tmp_counts_8hh1lpor48o245cf1dgecq1spg_6a2aa15837028 (
sub_icon_id INT NOT NULL PRIMARY KEY,
count INT NOT NULL
) ENGINE=MEMORY; [0.00058078765869141 sec]
INSERT IGNORE INTO tmp_counts_8hh1lpor48o245cf1dgecq1spg_6a2aa15837028 (sub_icon_id, count)
SELECT
sub_icon_id,
COUNT(DISTINCT entry) AS count
FROM (
SELECT A.entry, A.sub_icon_id
FROM tmp_A_8hh1lpor48o245cf1dgecq1spg_6a2aa15837028 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.00074410438537598 sec]
SELECT
c.sub_icon_id AS id,
c.count,
si.entry,
si.name AS name,
si.url
FROM tmp_counts_8hh1lpor48o245cf1dgecq1spg_6a2aa15837028 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.00039482116699219 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_A_8hh1lpor48o245cf1dgecq1spg_6a2aa15837028 [0.00032806396484375 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_counts_8hh1lpor48o245cf1dgecq1spg_6a2aa15837028 [0.00018906593322754 sec]
Подарки на 14 февраля Ellen ... Certified International (Eллeн ... Кeртіфіeд Інтeрнaтіoнaл) – большой выбор, фото, отзывы. Купить Подарки на 14 февраля Ellen ... Certified International в Киеве и Украине
Ваш заказ оформлен! На e-mail отправлено письмо с подтверждением В ближайшее время с Вами свяжется менеджер Спасибо за заказ!
Ваш профиль будет удален навсегда. Его нельзя восстановить. Продолжить?
Оставьте свой номер телефона и наши менеджеры вам перезвонят
Оплату картами Visa и MasterCard обеспечивает сервис онлайн-платежей Portmone.com. Безопасность оплаты подтверждена международным аудитом PCI DSS. Служба поддержки: тел. +380(44)2000902