SELECT url_to, r404
FROM pod_redirect
WHERE BINARY REPLACE(url_from,'/ru/','/') = '/kostyum/kapyushon.html' LIMIT 0,1 [0.00049400329589844 sec]
SELECT pod_filter.id,pod_filter.url FROM pod_filter WHERE BINARY pod_filter.url IN ('kapyushon') order by url [0.0015318393707275 sec]
SELECT pod_sub_icon.id,pod_sub_icon.url FROM pod_sub_icon WHERE BINARY pod_sub_icon.url IN ('kapyushon') order by url [0.0011358261108398 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 = 'kapyushon'
AND c.url = 'kostyum'
AND cf.is_active = 1
LIMIT 1 [0.00064682960510254 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 = 'kapyushon'
AND c.url = 'kostyum'
AND cf.is_active = 1
LIMIT 1 [0.00053501129150391 sec]
SELECT id, noindex FROM pod_sub_icon
WHERE is_active = 1 AND
is_active_filter = 1 AND
url = 'kapyushon'
LIMIT 1 [0.00043892860412598 sec]
SELECT id, url FROM pod_filter WHERE url IN ('kapyushon') [0.00040006637573242 sec]
SELECT id, url FROM pod_sub_icon WHERE url IN ('kapyushon') [0.00034999847412109 sec]
SELECT sc.url, sc.id AS super_category_id,
sc.name_ua AS super_category_name,
sc.templ_good_title_ua AS templ_good_title, sc.templ_good_kwds,
sc.templ_good_desc_ua AS templ_good_desc,
sc.templ_brand_title_ua AS templ_brand_title, sc.templ_brand_kwds,
sc.templ_brand_desc_ua AS templ_brand_desc,
sc.templ_cat_title_ua AS templ_cat_title, sc.templ_cat_kwds,
sc.templ_cat_desc_ua 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='2888' [0.00041818618774414 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 (1218) and f.is_active AND mf.is_active
ORDER BY mf.id, f.id [0.00024199485778809 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.00031208992004395 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 (3045) 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 (3045) AND g.entry=0 AND g.is_active AND g.is_present_all_mods [0.0040099620819092 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.00038409233093262 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.0006258487701416 sec]
SELECT g.id /* cats:3045 */
FROM tmp_base_goods g
INNER JOIN pod_good_filter gf0 ON g.id = gf0.id_good AND gf0.filter_id_value in (1218)
WHERE 1
[0.0024440288543701 sec]
CREATE TEMPORARY TABLE temp_brand_counts_6a2b1e4a8478f (
id INT,
gid INT,
INDEX idx_id (id),
INDEX idx_gid (gid)
) [0.00024580955505371 sec]
INSERT INTO temp_brand_counts_6a2b1e4a8478f (id, gid)
SELECT g.brand_id AS id, g.id AS gid /* cats:3045 */
FROM tmp_base_goods g
INNER JOIN pod_good_filter gf0 ON g.id = gf0.id_good AND gf0.filter_id_value in (1218)
WHERE 1
[0.0007021427154541 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_6a2b1e4a8478f
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.00035810470581055 sec]
DROP TEMPORARY TABLE IF EXISTS temp_brand_counts_6a2b1e4a8478f [0.00011897087097168 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:3045 */
FROM tmp_base_goods g
INNER JOIN pod_good_filter gf0 ON g.id = gf0.id_good AND gf0.filter_id_value in (1218)
WHERE g.is_present AND
1
UNION
SELECT MIN(go.price) AS min_price, MAX(go.price) AS max_price /* cats:3045 */
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 (1218)
WHERE 1
) A
[0.00073790550231934 sec]
SELECT g.id /* cats:3045 */,if(g.is_present and g.price >= '2970' and g.price <= '2970',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 >= '2970' and g.price <= '2970',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 >= '2970' AND pcg.price <= '2970'
WHERE g.id IN (456549)
GROUP BY g.id
ORDER BY g.ordr desc
LIMIT 0, 32 [0.0012609958648682 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 >= '2970' and g.price <= '2970',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 >= '2970' and g.price <= '2970',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 >= '2970' and pcg.price <= '2970')
WHERE g.id in (456549)
GROUP BY g.id
ORDER BY g.ordr desc [0.0010080337524414 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.entry, 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 IN (456549) AND g.is_present = '1' AND g.is_active = '1'
ORDER BY g.entry, g.is_present DESC [0.00055599212646484 sec]
SELECT DISTINCT
ggd2.good_id AS source_good_id,
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_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 (456549)
ORDER BY ggd2.good_id, g.is_present_all_mods DESC [0.00068497657775879 sec]
SELECT id, name_ua AS name, url FROM pod_filter WHERE id in (1218) AND is_active='1' [0.00029778480529785 sec]
SELECT cf.id,
cf.info_ua AS info,
cf.title_ua AS title,
cf.metadesc_ua AS metadesc,
cf.seo_text_ua AS seo_text,
cf.tagH1_ua AS tagH1,
cf.is_active
FROM pod_set_cat_filter cf
INNER JOIN pod_filter f ON cf.filter_value_id = f.id
WHERE cf.cat_id = 3045
AND f.id = '1218' LIMIT 1 [0.0004420280456543 sec]
SELECT cf.id,
cf.info_ua AS info,
cf.title_ua AS title,
cf.metadesc_ua AS metadesc,
cf.seo_text_ua AS seo_text,
cf.tagH1_ua AS tagH1,
cf.is_active
FROM pod_set_cat_subicon cf
INNER JOIN pod_sub_icon f ON cf.subicon_id = f.id
WHERE cf.cat_id = 3045
AND f.url = 'kapyushon' LIMIT 1 [0.00048589706420898 sec]
SELECT id, name_ua AS name, url, entry FROM pod_cat_category WHERE is_active='1' AND is_hidden='0' AND entry='0'
AND super_category_id='1' AND id!='3045' ORDER BY ordr [0.0010571479797363 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_A_0l6ghim8sua484ajseht55sp9s_6a2b1e4a8a273;
CREATE TEMPORARY TABLE tmp_A_0l6ghim8sua484ajseht55sp9s_6a2b1e4a8a273 (
id INT NOT NULL,
PRIMARY KEY (id)
) ENGINE=MEMORY; [0.00042104721069336 sec]
INSERT INTO tmp_A_0l6ghim8sua484ajseht55sp9s_6a2b1e4a8a273 (id) SELECT A.id FROM (
SELECT g.id /* cats:3045 */
FROM tmp_base_goods g
INNER JOIN pod_good_filter gf0 ON g.id = gf0.id_good AND gf0.filter_id_value in (1218)
WHERE 1
) A [0.00058484077453613 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_pairs_0l6ghim8sua484ajseht55sp9s_6a2b1e4a8a273;
CREATE TEMPORARY TABLE tmp_pairs_0l6ghim8sua484ajseht55sp9s_6a2b1e4a8a273 (
goods_id INT NOT NULL,
filter_id INT NOT NULL,
PRIMARY KEY (goods_id, filter_id)
) ENGINE=MEMORY; [0.00043201446533203 sec]
INSERT INTO tmp_pairs_0l6ghim8sua484ajseht55sp9s_6a2b1e4a8a273 (goods_id, filter_id)
SELECT DISTINCT
A.id AS goods_id,
f.id AS filter_id
FROM tmp_A_0l6ghim8sua484ajseht55sp9s_6a2b1e4a8a273 A
INNER JOIN pod_good_filter gf ON A.id = gf.id_good AND gf.filter_id_value NOT IN (1218)
INNER JOIN pod_cat_filter cf ON gf.filter_id = cf.filter_id AND cf.category_id = 3045
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.0067570209503174 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_counts_0l6ghim8sua484ajseht55sp9s_6a2b1e4a8a273;
CREATE TEMPORARY TABLE tmp_counts_0l6ghim8sua484ajseht55sp9s_6a2b1e4a8a273 (
filter_id INT NOT NULL PRIMARY KEY,
count INT NOT NULL
) ENGINE=MEMORY; [0.00039815902709961 sec]
INSERT IGNORE INTO tmp_counts_0l6ghim8sua484ajseht55sp9s_6a2b1e4a8a273 (filter_id, count)
SELECT
p.filter_id,
COUNT(*) AS count
FROM tmp_pairs_0l6ghim8sua484ajseht55sp9s_6a2b1e4a8a273 p
GROUP BY p.filter_id [0.00044608116149902 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_0l6ghim8sua484ajseht55sp9s_6a2b1e4a8a273 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.00043821334838867 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_A_0l6ghim8sua484ajseht55sp9s_6a2b1e4a8a273 [0.00040006637573242 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_pairs_0l6ghim8sua484ajseht55sp9s_6a2b1e4a8a273 [0.00017499923706055 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_counts_0l6ghim8sua484ajseht55sp9s_6a2b1e4a8a273 [0.00014519691467285 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_A_0l6ghim8sua484ajseht55sp9s_6a2b1e4a8d049;
CREATE TEMPORARY TABLE tmp_A_0l6ghim8sua484ajseht55sp9s_6a2b1e4a8d049 (
id INT NOT NULL,
entry INT NOT NULL,
PRIMARY KEY (id),
KEY idx_entry (entry)
) ENGINE=MEMORY; [0.00041484832763672 sec]
INSERT INTO tmp_A_0l6ghim8sua484ajseht55sp9s_6a2b1e4a8d049 (id, entry) SELECT A.id, A.entry FROM (
SELECT g.id as id, g.id as entry /* cats:3045 */
FROM tmp_base_goods g
INNER JOIN pod_good_filter gf0 ON g.id = gf0.id_good AND gf0.filter_id_value in (1218)
WHERE g.is_present AND
1
UNION
SELECT go.id as id, g.id as entry /* cats:3045 */
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 (1218)
WHERE 1
) A [0.0009610652923584 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_pairs_0l6ghim8sua484ajseht55sp9s_6a2b1e4a8d049;
CREATE TEMPORARY TABLE tmp_pairs_0l6ghim8sua484ajseht55sp9s_6a2b1e4a8d049 (
goods_id INT NOT NULL,
filter_id INT NOT NULL,
PRIMARY KEY (goods_id, filter_id)
) ENGINE=MEMORY; [0.00043892860412598 sec]
INSERT INTO tmp_pairs_0l6ghim8sua484ajseht55sp9s_6a2b1e4a8d049 (goods_id, filter_id)
SELECT DISTINCT
A.entry AS goods_id,
f.id AS filter_id
FROM tmp_A_0l6ghim8sua484ajseht55sp9s_6a2b1e4a8d049 A
INNER JOIN pod_good_filter gf ON A.id = gf.id_good AND gf.filter_id_value NOT IN (1218)
INNER JOIN pod_cat_filter cf ON gf.filter_id = cf.filter_id AND cf.category_id = 3045
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.00087594985961914 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_counts_0l6ghim8sua484ajseht55sp9s_6a2b1e4a8d049;
CREATE TEMPORARY TABLE tmp_counts_0l6ghim8sua484ajseht55sp9s_6a2b1e4a8d049 (
filter_id INT NOT NULL PRIMARY KEY,
count INT NOT NULL
) ENGINE=MEMORY; [0.00052595138549805 sec]
INSERT IGNORE INTO tmp_counts_0l6ghim8sua484ajseht55sp9s_6a2b1e4a8d049 (filter_id, count)
SELECT
p.filter_id,
COUNT(*) AS count
FROM tmp_pairs_0l6ghim8sua484ajseht55sp9s_6a2b1e4a8d049 p
GROUP BY p.filter_id [0.0004119873046875 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_0l6ghim8sua484ajseht55sp9s_6a2b1e4a8d049 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.00047087669372559 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_A_0l6ghim8sua484ajseht55sp9s_6a2b1e4a8d049 [0.00034999847412109 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_pairs_0l6ghim8sua484ajseht55sp9s_6a2b1e4a8d049 [0.00012993812561035 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_counts_0l6ghim8sua484ajseht55sp9s_6a2b1e4a8d049 [0.00019097328186035 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_A_0l6ghim8sua484ajseht55sp9s_6a2b1e4a8e8f5;
CREATE TEMPORARY TABLE tmp_A_0l6ghim8sua484ajseht55sp9s_6a2b1e4a8e8f5 (
id INT NOT NULL,
PRIMARY KEY (id)
) ENGINE=MEMORY; [0.00027894973754883 sec]
INSERT INTO tmp_A_0l6ghim8sua484ajseht55sp9s_6a2b1e4a8e8f5 (id) SELECT A.id FROM (
SELECT g.id /* cats:3045 */
FROM tmp_base_goods g
WHERE 1
) A [0.00034880638122559 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_pairs_0l6ghim8sua484ajseht55sp9s_6a2b1e4a8e8f5;
CREATE TEMPORARY TABLE tmp_pairs_0l6ghim8sua484ajseht55sp9s_6a2b1e4a8e8f5 (
goods_id INT NOT NULL,
filter_id INT NOT NULL,
PRIMARY KEY (goods_id, filter_id)
) ENGINE=MEMORY; [0.00031208992004395 sec]
INSERT INTO tmp_pairs_0l6ghim8sua484ajseht55sp9s_6a2b1e4a8e8f5 (goods_id, filter_id)
SELECT DISTINCT
A.id AS goods_id,
f.id AS filter_id
FROM tmp_A_0l6ghim8sua484ajseht55sp9s_6a2b1e4a8e8f5 A
INNER JOIN pod_good_filter gf ON A.id = gf.id_good AND gf.filter_id = 1217
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.0031399726867676 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_counts_0l6ghim8sua484ajseht55sp9s_6a2b1e4a8e8f5;
CREATE TEMPORARY TABLE tmp_counts_0l6ghim8sua484ajseht55sp9s_6a2b1e4a8e8f5 (
filter_id INT NOT NULL PRIMARY KEY,
count INT NOT NULL
) ENGINE=MEMORY; [0.00038003921508789 sec]
INSERT INTO tmp_counts_0l6ghim8sua484ajseht55sp9s_6a2b1e4a8e8f5 (filter_id, count)
SELECT
p.filter_id,
COUNT(*) AS count
FROM tmp_pairs_0l6ghim8sua484ajseht55sp9s_6a2b1e4a8e8f5 p
GROUP BY p.filter_id [0.00041580200195312 sec]
INSERT IGNORE INTO tmp_counts_0l6ghim8sua484ajseht55sp9s_6a2b1e4a8e8f5 (filter_id, count)
SELECT pf.id, 0
FROM pod_filter pf
LEFT JOIN tmp_counts_0l6ghim8sua484ajseht55sp9s_6a2b1e4a8e8f5 c ON c.filter_id = pf.id
WHERE pf.id in (1218) AND c.filter_id IS NULL [0.00028896331787109 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_0l6ghim8sua484ajseht55sp9s_6a2b1e4a8e8f5 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.00040221214294434 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_A_0l6ghim8sua484ajseht55sp9s_6a2b1e4a8e8f5 [0.00026893615722656 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_pairs_0l6ghim8sua484ajseht55sp9s_6a2b1e4a8e8f5 [0.00012302398681641 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_counts_0l6ghim8sua484ajseht55sp9s_6a2b1e4a8e8f5 [0.00011801719665527 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_A_0l6ghim8sua484ajseht55sp9s_6a2b1e4a905e2;
CREATE TEMPORARY TABLE tmp_A_0l6ghim8sua484ajseht55sp9s_6a2b1e4a905e2 (
entry INT NOT NULL,
sub_icon_id INT NOT NULL,
PRIMARY KEY (entry, sub_icon_id)
) ENGINE=MEMORY; [0.00035595893859863 sec]
INSERT IGNORE INTO tmp_A_0l6ghim8sua484ajseht55sp9s_6a2b1e4a905e2 (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:3045 */
FROM tmp_base_goods g
INNER JOIN pod_good_filter gf0 ON g.id = gf0.id_good AND gf0.filter_id_value in (1218)
WHERE g.is_present AND
1
UNION
SELECT go.id as id, g.id as entry, go.sub_icon_id /* cats:3045 */
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 (1218)
WHERE 1
) A [0.00090193748474121 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_counts_0l6ghim8sua484ajseht55sp9s_6a2b1e4a905e2;
CREATE TEMPORARY TABLE tmp_counts_0l6ghim8sua484ajseht55sp9s_6a2b1e4a905e2 (
sub_icon_id INT NOT NULL PRIMARY KEY,
count INT NOT NULL
) ENGINE=MEMORY; [0.00038599967956543 sec]
INSERT IGNORE INTO tmp_counts_0l6ghim8sua484ajseht55sp9s_6a2b1e4a905e2 (sub_icon_id, count)
SELECT
sub_icon_id,
COUNT(DISTINCT entry) AS count
FROM (
SELECT A.entry, A.sub_icon_id
FROM tmp_A_0l6ghim8sua484ajseht55sp9s_6a2b1e4a905e2 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.00062298774719238 sec]
SELECT
c.sub_icon_id AS id,
c.count,
si.entry,
si.name_ua AS name,
si.url
FROM tmp_counts_0l6ghim8sua484ajseht55sp9s_6a2b1e4a905e2 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.00032997131347656 sec]
Array
(
[0] => Array
(
[COUNT(*)] => 39
)
)
SELECT COUNT(DISTINCT filter_id) FROM pod_good_filter
WHERE id_good IN (SELECT id FROM tmp_base_goods); [0.00045609474182129 sec]
Array
(
[0] => Array
(
[COUNT(DISTINCT filter_id)] => 7
)
)
-----------------------------
DROP TEMPORARY TABLE IF EXISTS tmp_A_0l6ghim8sua484ajseht55sp9s_6a2b1e4a905e2 [0.0002751350402832 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_counts_0l6ghim8sua484ajseht55sp9s_6a2b1e4a905e2 [0.00013518333435059 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_base_goods;
DROP TEMPORARY TABLE IF EXISTS tmp_sub_goods [0.00025010108947754 sec]
Чоловічі костюми капюшон купити в Україні та Києві за найкращою ціною - інтернет-магазин «Подушка»
Ваше замовлення оформлено! На e-mail відправлено лист з підтвердженням Найближчим часом з Вами зв'яжеться менеджер Дякємо за замовлення!
Ваш профіль буде видалений назавжди. Його не можна відновити. Продовжити?
Залиште свій номер телефону і наші менеджери Вам зателефонують
Оплату картами Visa і MasterCard забезпечує сервіс онлайн-платежів Portmone.com. Безпека оплати підтверджена міжнародним аудитом PCI DSS. Служба підтримки: тел. +380 (44) 2000902