Новинки
Производитель: Влади (Украина)
Производитель: Влади (Украина)
SELECT url_to, r404
FROM pod_redirect
WHERE BINARY REPLACE(url_from,'/ru/','/') = '/novinki/vladi.html' LIMIT 0,1 [0.00048708915710449 sec]
select id,url from pod_cat_brand where BINARY url = 'vladi' [0.00096487998962402 sec]
select id from pod_structure where link='catalogue/scat/12' and active='1' AND lang_ru='1' [0.00047111511230469 sec]
select id from pod_structure where link='catalogue/scat' and active='1' AND lang_ru='1' [0.00020098686218262 sec]
SELECT cb.metaindex, cb.metafollow
FROM pod_set_cat_brand cb
INNER JOIN pod_cat_category c ON cb.cat_id = c.id
WHERE c.url = 'novinki'
AND cb.brand_id = 104
AND cb.is_active = 1
LIMIT 1 [0.00034785270690918 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.00034689903259277 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 (2251,2196,2347,2909,3070,2894,1027,1029,918,927,981,934,931,937,939,943,1087,953,954,959,960,961,911,912,913,914,915,916,979,989,962,972,951,974,975,946,949,1024,1036,1046,1272,1407,2121,2109,2111,2171,2209,4425,4576,1020,4600) 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 (2251,2196,2347,2909,3070,2894,1027,1029,918,927,981,934,931,937,939,943,1087,953,954,959,960,961,911,912,913,914,915,916,979,989,962,972,951,974,975,946,949,1024,1036,1046,1272,1407,2121,2109,2111,2171,2209,4425,4576,1020,4600) AND g.entry=0 AND g.is_active AND g.is_present_all_mods [0.22361302375793 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.00048685073852539 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.015694141387939 sec]
SELECT g.id -- основні (tmp)
FROM tmp_base_goods g
WHERE g.brand_id IN (104) AND
1
[0.00034689903259277 sec]
CREATE TEMPORARY TABLE temp_brand_counts_6a2ae2a06b05b (
id INT,
gid INT,
INDEX idx_id (id),
INDEX idx_gid (gid)
) [0.00046706199645996 sec]
INSERT INTO temp_brand_counts_6a2ae2a06b05b (id, gid)
SELECT g.brand_id AS id, g.id AS gid -- основні (tmp)
FROM tmp_base_goods g
WHERE 1
UNION
SELECT id, null gid
FROM pod_cat_category
WHERE id in (104) [0.0060110092163086 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_6a2ae2a06b05b
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.00094819068908691 sec]
DROP TEMPORARY TABLE IF EXISTS temp_brand_counts_6a2ae2a06b05b [0.0001060962677002 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 -- основні (tmp)
FROM tmp_base_goods g
WHERE g.brand_id IN (104) AND
g.is_present AND
1
UNION
SELECT MIN(go.price) AS min_price, MAX(go.price) AS max_price -- підтовари (tmp)
FROM tmp_sub_goods go
INNER JOIN tmp_base_goods g ON go.entry = g.id
WHERE g.brand_id IN (104) AND
1
) A
[0.0003819465637207 sec]
SELECT g.id,if(g.is_present and g.price >= '545' and g.price <= '545',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 >= '545' and g.price <= '545',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 >= '545' AND pcg.price <= '545'
WHERE g.id IN (508886,508885,508884)
GROUP BY g.id
ORDER BY g.ordr desc
LIMIT 0, 32 [0.00075411796569824 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 >= '545' and g.price <= '545',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 >= '545' and g.price <= '545',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 >= '545' and pcg.price <= '545')
WHERE g.id in (508884,508885,508886)
GROUP BY g.id
ORDER BY g.ordr desc [0.0012021064758301 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 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 IN (508884,508885,508886) AND g.is_active = '1'
ORDER BY g.entry, g.is_present DESC [0.00035476684570312 sec]
SELECT DISTINCT
ggd2.good_id AS source_good_id,
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_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 (508884,508885,508886)
ORDER BY ggd2.good_id, g.is_present_all_mods DESC [0.00095415115356445 sec]
SELECT name AS name, url FROM pod_cat_brand WHERE id in (104) [0.00016999244689941 sec]
SELECT
name AS name,
templ_brand_kwds AS templ_brand_kwds,
templ_brand_desc AS templ_brand_desc,
templ_brand_title AS templ_brand_title,
url
FROM pod_super_category
WHERE id='12' AND is_active='1' [0.00020217895507812 sec]
SELECT p.id, p.dt, p.title as title, p.descr, p.thumb, p.url, s.link
FROM pod_publication p
LEFT JOIN pod_pub_type pt ON pt.id=p.rub_id
LEFT JOIN pod_structure s ON pt.page_id=s.id
LEFT JOIN pod_cat_public cp ON (cp.public_id = p.id)
WHERE p.rub_id = 2 AND p.active='1' AND cp.category_id=''
ORDER BY p.dt DESC LIMIT 1 [0.0067830085754395 sec]
SELECT name AS name, url FROM pod_cat_brand WHERE id='104' [0.00022006034851074 sec]
SELECT id, name AS name, url, entry FROM pod_cat_category WHERE is_active='1' AND is_hidden='0' AND entry='0'
AND super_category_id='12' AND id!='s12' ORDER BY ordr [0.00046086311340332 sec]
SELECT id, name AS name, url, entry FROM pod_cat_category WHERE is_active='1' AND is_hidden='0' AND entry IN (1020,1272,1024,1027,1029,1087,1046,1036,915,972,974,975,979,959,960,953,961,962,954,951,989,912,931,934,981,927,918,916,914,913,911,937,939,949,946,943,2109,2111,2121,2171,2196,2209,2251,2347,2909,2894,3070,4425,4576,4600) ORDER BY ordr [0.00058078765869141 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_base_goods;
DROP TEMPORARY TABLE IF EXISTS tmp_sub_goods [0.0002598762512207 sec]
DEVELOPMENT🌷СКИДКИ ДО 70%
ПЕРЕЙТИ
Производитель: Влади (Украина)
Производитель: Влади (Украина)