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.00051712989807129 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 (115) 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 (115) AND g.entry=0 AND g.is_active AND g.is_present_all_mods [0.4589478969574 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.00051999092102051 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.0041170120239258 sec]
SELECT g.id /* cats:115 */
FROM tmp_base_goods g
WHERE g.brand_id IN (2550,2500,1203,334,2445,327) AND
1
[0.00035786628723145 sec]
SELECT g.id /* cats:115 */,if(g.is_present and g.price >= '556' and g.price <= '23491',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 >= '556' and g.price <= '23491',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 >= '556' AND pcg.price <= '23491'
WHERE g.id IN (480055,470160,468482,468480,413741,463310,444760,444758,444714,444711,444674,444304,444206,463175,463174,463173,463172,463171,463170,463169,463168,463167,463166,463165,463164,463163,463162,463161,463160,463159,463158,463157,463156,463155,463154,463153,463152,463151,463150,463149,463148,463147,463146,463145,463144,463143,463142,463141,463140,463134,463133,463132,463131,463130,463129,463123,463122,463121,463120,463119,463118,463113,463112,463111,463110,463109,463108,463103,463102,463101,463100,463099,463098,463094,463093,463092,463091,463090,463089,463086,463085,463084,463083,463082,463081,463080,461893,461892,461891,461890,461889,461888)
GROUP BY g.id
ORDER BY g.ordr desc
LIMIT 0, 32 [0.0039811134338379 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 >= '556' and g.price <= '23491',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 >= '556' and g.price <= '23491',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 >= '556' and pcg.price <= '23491')
WHERE g.id in (480055,470160,444206,444714,444674,444304,463110,463156,463099,463149,463089,463142,463174,463080,463130,463167,444760,463118,463160,413741,463103,463153,463093,463146,468482,463084,463134,463171,461891,463122,463164,444711)
GROUP BY g.id
ORDER BY g.ordr desc [0.0049328804016113 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 (480055,470160,444206,444714,444674,444304,413741,461891,463080,444711,463084,463089,463093,444760,463099,463103,463110,463118,463122,463130,463134,463142,463146,463149,463153,463156,463160,463164,463167,463171,463174,468482) AND g.is_active = '1'
ORDER BY g.entry, g.is_present DESC [0.00075101852416992 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 (480055,470160,444206,444714,444674,444304,413741,461891,463080,444711,463084,463089,463093,444760,463099,463103,463110,463118,463122,463130,463134,463142,463146,463149,463153,463156,463160,463164,463167,463171,463174,468482)
ORDER BY ggd2.good_id, g.is_present_all_mods DESC [0.0062291622161865 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_A_pr72ettloubii881n2bandppab_6a2b395818e09;
CREATE TEMPORARY TABLE tmp_A_pr72ettloubii881n2bandppab_6a2b395818e09 (
id INT NOT NULL,
entry INT NOT NULL,
PRIMARY KEY (id),
KEY idx_entry (entry)
) ENGINE=MEMORY; [0.00053501129150391 sec]
INSERT INTO tmp_A_pr72ettloubii881n2bandppab_6a2b395818e09 (id, entry) SELECT A.id, A.entry FROM (
SELECT g.id as id, g.id as entry /* cats:115 */
FROM tmp_base_goods g
WHERE g.brand_id IN (2550,2500,1203,334,2445,327) AND
g.is_present AND
1
UNION
SELECT go.id as id, g.id as entry /* cats:115 */
FROM tmp_sub_goods go
INNER JOIN tmp_base_goods g ON go.entry = g.id
WHERE g.brand_id IN (2550,2500,1203,334,2445,327) AND
1
) A [0.00077104568481445 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_pairs_pr72ettloubii881n2bandppab_6a2b395818e09;
CREATE TEMPORARY TABLE tmp_pairs_pr72ettloubii881n2bandppab_6a2b395818e09 (
goods_id INT NOT NULL,
filter_id INT NOT NULL,
PRIMARY KEY (goods_id, filter_id)
) ENGINE=MEMORY; [0.0003969669342041 sec]
INSERT INTO tmp_pairs_pr72ettloubii881n2bandppab_6a2b395818e09 (goods_id, filter_id)
SELECT DISTINCT
A.entry AS goods_id,
f.id AS filter_id
FROM tmp_A_pr72ettloubii881n2bandppab_6a2b395818e09 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 = 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.0048449039459229 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_counts_pr72ettloubii881n2bandppab_6a2b395818e09;
CREATE TEMPORARY TABLE tmp_counts_pr72ettloubii881n2bandppab_6a2b395818e09 (
filter_id INT NOT NULL PRIMARY KEY,
count INT NOT NULL
) ENGINE=MEMORY; [0.00030183792114258 sec]
INSERT IGNORE INTO tmp_counts_pr72ettloubii881n2bandppab_6a2b395818e09 (filter_id, count)
SELECT
p.filter_id,
COUNT(*) AS count
FROM tmp_pairs_pr72ettloubii881n2bandppab_6a2b395818e09 p
GROUP BY p.filter_id [0.00029611587524414 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_pr72ettloubii881n2bandppab_6a2b395818e09 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.0004730224609375 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_A_pr72ettloubii881n2bandppab_6a2b395818e09 [0.00021004676818848 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_pairs_pr72ettloubii881n2bandppab_6a2b395818e09 [0.00010204315185547 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_counts_pr72ettloubii881n2bandppab_6a2b395818e09 [7.7009201049805E-5 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_base_goods;
DROP TEMPORARY TABLE IF EXISTS tmp_sub_goods [0.00027084350585938 sec]
Низькі ціни на Каструлі Simax ... Barazzoni (Сімaкс ... Бaрaззoні) - великий вибір, фото. Купити Каструлі Simax ... Barazzoni (Сімaкс ... Бaрaззoні) в Києві і Україні
Ваше замовлення оформлено! На e-mail відправлено лист з підтвердженням Найближчим часом з Вами зв'яжеться менеджер Дякємо за замовлення!
Ваш профіль буде видалений назавжди. Його не можна відновити. Продовжити?
Залиште свій номер телефону і наші менеджери Вам зателефонують
Оплату картами Visa і MasterCard забезпечує сервіс онлайн-платежів Portmone.com. Безпека оплати підтверджена міжнародним аудитом PCI DSS. Служба підтримки: тел. +380 (44) 2000902