Дитячі конструктори Xtrem Bots ... Stem
Виробник: Super Wings (КНР)
Виробник: Super Wings (КНР)
Виробник: Super Wings (КНР)
SELECT url_to, r404
FROM pod_redirect
WHERE BINARY REPLACE(url_from,'/ru/','/') = '/konstruktory_kits/o_6-developing-constructor_sets-space-transformery-xtrem_bots-super_wings-stem.html' LIMIT 0,1 [0.00029397010803223 sec]
SELECT pod_sub_icon.id,pod_sub_icon.url FROM pod_sub_icon WHERE BINARY pod_sub_icon.url IN ('o_6','developing','constructor_sets','space','transformery','xtrem_bots','super_wings','stem') order by url [0.00057697296142578 sec]
SELECT id, url FROM pod_sub_icon WHERE url IN ('o_6','developing','constructor_sets','space','transformery','xtrem_bots','super_wings','stem') [0.00054097175598145 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.00019693374633789 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 (3297,437,447,446) 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 (3297,437,447,446) AND g.entry=0 AND g.is_active AND g.is_present_all_mods [0.036594152450562 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.00023293495178223 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.00083303451538086 sec]
SELECT name_ua AS name, url FROM pod_cat_brand WHERE id='2460.2499.2615' [0.00015902519226074 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_A_74boh67c3s868p90s2anh0t197_6a2ad4e5ad777;
CREATE TEMPORARY TABLE tmp_A_74boh67c3s868p90s2anh0t197_6a2ad4e5ad777 (
entry INT NOT NULL,
sub_icon_id INT NOT NULL,
PRIMARY KEY (entry, sub_icon_id)
) ENGINE=MEMORY; [0.00024294853210449 sec]
INSERT IGNORE INTO tmp_A_74boh67c3s868p90s2anh0t197_6a2ad4e5ad777 (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 -- основні (tmp)
FROM tmp_base_goods g
INNER JOIN pod_good_filter gf0 ON g.id = gf0.id_good AND gf0.filter_id_value in (364)
INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (463,466)
INNER JOIN pod_good_filter gf2 ON g.id = gf2.id_good AND gf2.filter_id_value in (3452,3460)
WHERE g.brand_id IN (2460,2499,2615) AND
g.is_present AND
1
UNION
SELECT go.id as id, g.id as entry, go.sub_icon_id -- підтовари (tmp)
FROM tmp_sub_goods go
INNER JOIN tmp_base_goods g ON go.entry = g.id
INNER JOIN pod_good_filter gf0 ON go.id = gf0.id_good AND gf0.filter_id_value in (364)
INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (463,466)
INNER JOIN pod_good_filter gf2 ON g.id = gf2.id_good AND gf2.filter_id_value in (3452,3460)
WHERE g.brand_id IN (2460,2499,2615) AND
1
) A [0.0061750411987305 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_counts_74boh67c3s868p90s2anh0t197_6a2ad4e5ad777;
CREATE TEMPORARY TABLE tmp_counts_74boh67c3s868p90s2anh0t197_6a2ad4e5ad777 (
sub_icon_id INT NOT NULL PRIMARY KEY,
count INT NOT NULL
) ENGINE=MEMORY; [0.00019311904907227 sec]
INSERT IGNORE INTO tmp_counts_74boh67c3s868p90s2anh0t197_6a2ad4e5ad777 (sub_icon_id, count)
SELECT
sub_icon_id,
COUNT(DISTINCT entry) AS count
FROM (
SELECT A.entry, A.sub_icon_id
FROM tmp_A_74boh67c3s868p90s2anh0t197_6a2ad4e5ad777 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.00023794174194336 sec]
SELECT
c.sub_icon_id AS id,
c.count,
si.entry,
si.name_ua AS name,
si.url
FROM tmp_counts_74boh67c3s868p90s2anh0t197_6a2ad4e5ad777 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.00013589859008789 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_A_74boh67c3s868p90s2anh0t197_6a2ad4e5ad777 [0.00013899803161621 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_counts_74boh67c3s868p90s2anh0t197_6a2ad4e5ad777 [7.3909759521484E-5 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_base_goods;
DROP TEMPORARY TABLE IF EXISTS tmp_sub_goods [0.00012588500976562 sec]
DEVELOPMENT🌷ЗНИЖКИ ДО 70%
ПЕРЕЙТИ
Виробник: Super Wings (КНР)
Виробник: Super Wings (КНР)
Виробник: Super Wings (КНР)