SELECT url_to, r404 FROM pod_redirect WHERE BINARY REPLACE(url_from,'/ru/','/') = '/konstruktory_kits/electronic-developing-constructor_sets-stroitel-transformery-magplayer-same_toy-stem.html' LIMIT 0,1 [0.00067591667175293 sec]
SELECT pod_filter.id,pod_filter.url FROM pod_filter WHERE BINARY pod_filter.url IN ('electronic','developing','constructor_sets','stroitel','transformery','magplayer','same_toy','stem') order by url [0.0019209384918213 sec]
SELECT pod_sub_icon.id,pod_sub_icon.url FROM pod_sub_icon WHERE BINARY pod_sub_icon.url IN ('electronic','developing','constructor_sets','stroitel','transformery','magplayer','same_toy','stem') order by url [0.0012950897216797 sec]
select id,url from pod_cat_brand where BINARY url IN ('electronic','developing','constructor_sets','stroitel','transformery','magplayer','same_toy','stem') [0.0025520324707031 sec]
SELECT id, url FROM pod_filter WHERE url IN ('electronic','developing','constructor_sets','stroitel','transformery','magplayer','same_toy','stem') [0.0011651515960693 sec]
SELECT id, url FROM pod_sub_icon WHERE url IN ('electronic','developing','constructor_sets','stroitel','transformery','magplayer','same_toy','stem') [0.0011861324310303 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 (466,463,462,3445,3460) and f.is_active AND mf.is_active ORDER BY mf.id, f.id [0.00041890144348145 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.00036311149597168 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.0052578449249268 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.00031614303588867 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.0005950927734375 sec]
SELECT g.id /* cats:3297,437,447,446 */ FROM tmp_base_goods g INNER JOIN pod_good_filter gf0 ON g.id = gf0.id_good AND gf0.filter_id_value in (462,463,466) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (3445,3460) WHERE g.brand_id IN (1600,2615,1470) AND 1 [0.0017890930175781 sec]
CREATE TEMPORARY TABLE temp_brand_counts_6a2fde8cbddb5 ( id INT, gid INT, INDEX idx_id (id), INDEX idx_gid (gid) ) [0.00034117698669434 sec]
INSERT INTO temp_brand_counts_6a2fde8cbddb5 (id, gid) SELECT g.brand_id AS id, g.id AS gid /* cats:3297,437,447,446 */ FROM tmp_base_goods g INNER JOIN pod_good_filter gf0 ON g.id = gf0.id_good AND gf0.filter_id_value in (462,463,466) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (3445,3460) WHERE 1 UNION SELECT id, null gid FROM pod_cat_category WHERE id in (1600,2615,1470) [0.00187087059021 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_6a2fde8cbddb5 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.00080490112304688 sec]
DROP TEMPORARY TABLE IF EXISTS temp_brand_counts_6a2fde8cbddb5 [0.00019407272338867 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:3297,437,447,446 */ FROM tmp_base_goods g INNER JOIN pod_good_filter gf0 ON g.id = gf0.id_good AND gf0.filter_id_value in (462,463,466) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (3445,3460) WHERE g.brand_id IN (1600,2615,1470) AND g.is_present AND 1 UNION SELECT MIN(go.price) AS min_price, MAX(go.price) AS max_price /* cats:3297,437,447,446 */ 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 (462,463,466) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (3445,3460) WHERE g.brand_id IN (1600,2615,1470) AND 1 ) A [0.0005190372467041 sec]
SELECT g.id,if(g.is_present and g.price >= '0' and g.price <= '99999',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 >= '0' and g.price <= '99999',greatest(g.price,ifnull(max(pcg.price),g.price)),ifnull(max(pcg.price),g.price)) max_sort_price FROM ( SELECT g.id /* cats:3297,437,447,446 */ FROM tmp_base_goods g INNER JOIN pod_good_filter gf0 ON g.id = gf0.id_good AND gf0.filter_id_value in (462,463,466) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (3445,3460) WHERE g.brand_id IN (1600,2615,1470) AND 1 ) a INNER JOIN pod_cat_good g ON a.id = g.id LEFT JOIN pod_cat_good pcg ON pcg.entry=g.id and pcg.is_present=1 and pcg.is_present=1 and pcg.price >= '0' and pcg.price <= '99999' GROUP BY g.id ORDER BY g.ordr desc LIMIT 0, 32 [0.0011281967163086 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_pairs_1gld7465003a2qn38s2t8bke43_6a2fde8cc093c; CREATE TEMPORARY TABLE tmp_pairs_1gld7465003a2qn38s2t8bke43_6a2fde8cc093c ( goods_id INT NOT NULL, filter_id INT NOT NULL, PRIMARY KEY (goods_id, filter_id) ) ENGINE=MEMORY; [0.00025415420532227 sec]
INSERT INTO tmp_pairs_1gld7465003a2qn38s2t8bke43_6a2fde8cc093c (goods_id, filter_id) SELECT DISTINCT t.id AS goods_id, f.id AS filter_id FROM pod_cat_filter cf INNER JOIN pod_filter fm ON cf.filter_id = fm.id AND fm.is_split = 0 AND fm.is_active INNER JOIN pod_good_filter gf USE INDEX (idx_cat_filter_good) ON gf.filter_id = cf.filter_id AND gf.cat_id IN (3297,437,447,446) AND gf.filter_id_value NOT IN (462,463,466,3445,3460) INNER JOIN pod_filter f ON gf.filter_id_value = f.id AND f.is_active INNER JOIN tmp_base_goods t ON gf.id_good = t.id WHERE cf.category_id = 3297 [0.010066986083984 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_counts_1gld7465003a2qn38s2t8bke43_6a2fde8cc093c; CREATE TEMPORARY TABLE tmp_counts_1gld7465003a2qn38s2t8bke43_6a2fde8cc093c ( filter_id INT NOT NULL PRIMARY KEY, count INT NOT NULL ) ENGINE=MEMORY; [0.00023007392883301 sec]
INSERT IGNORE INTO tmp_counts_1gld7465003a2qn38s2t8bke43_6a2fde8cc093c (filter_id, count) SELECT p.filter_id, COUNT(*) AS count FROM tmp_pairs_1gld7465003a2qn38s2t8bke43_6a2fde8cc093c p GROUP BY p.filter_id [0.00022697448730469 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_1gld7465003a2qn38s2t8bke43_6a2fde8cc093c 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.00023508071899414 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_pairs_1gld7465003a2qn38s2t8bke43_6a2fde8cc093c [0.00018692016601562 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_counts_1gld7465003a2qn38s2t8bke43_6a2fde8cc093c [7.0095062255859E-5 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_pairs_1gld7465003a2qn38s2t8bke43_6a2fde8cc3847; CREATE TEMPORARY TABLE tmp_pairs_1gld7465003a2qn38s2t8bke43_6a2fde8cc3847 ( goods_id INT NOT NULL, filter_id INT NOT NULL, PRIMARY KEY (goods_id, filter_id) ) ENGINE=MEMORY; [0.00011301040649414 sec]
INSERT INTO tmp_pairs_1gld7465003a2qn38s2t8bke43_6a2fde8cc3847 (goods_id, filter_id) SELECT DISTINCT ts.entry AS goods_id, f.id AS filter_id FROM pod_cat_filter cf INNER JOIN pod_filter fm ON cf.filter_id = fm.id AND fm.is_split = 1 AND fm.is_active INNER JOIN pod_good_filter gf USE INDEX (idx_cat_filter_good) ON gf.filter_id = cf.filter_id AND gf.cat_id IN (3297,437,447,446) AND gf.filter_id_value NOT IN (462,463,466,3445,3460) INNER JOIN pod_filter f ON gf.filter_id_value = f.id AND f.is_active INNER JOIN tmp_sub_goods ts ON gf.id_good = ts.id WHERE cf.category_id = 3297 [0.00027084350585938 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_counts_1gld7465003a2qn38s2t8bke43_6a2fde8cc3847; CREATE TEMPORARY TABLE tmp_counts_1gld7465003a2qn38s2t8bke43_6a2fde8cc3847 ( filter_id INT NOT NULL PRIMARY KEY, count INT NOT NULL ) ENGINE=MEMORY; [0.00015401840209961 sec]
INSERT IGNORE INTO tmp_counts_1gld7465003a2qn38s2t8bke43_6a2fde8cc3847 (filter_id, count) SELECT p.filter_id, COUNT(*) AS count FROM tmp_pairs_1gld7465003a2qn38s2t8bke43_6a2fde8cc3847 p GROUP BY p.filter_id [0.00014090538024902 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_1gld7465003a2qn38s2t8bke43_6a2fde8cc3847 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.00012087821960449 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_pairs_1gld7465003a2qn38s2t8bke43_6a2fde8cc3847 [0.00012493133544922 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_counts_1gld7465003a2qn38s2t8bke43_6a2fde8cc3847 [5.9127807617188E-5 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_pairs_1gld7465003a2qn38s2t8bke43_6a2fde8cc4006; CREATE TEMPORARY TABLE tmp_pairs_1gld7465003a2qn38s2t8bke43_6a2fde8cc4006 ( goods_id INT NOT NULL, filter_id INT NOT NULL, PRIMARY KEY (goods_id, filter_id) ) ENGINE=MEMORY; [0.00011897087097168 sec]
INSERT INTO tmp_pairs_1gld7465003a2qn38s2t8bke43_6a2fde8cc4006 (goods_id, filter_id) SELECT DISTINCT t.id AS goods_id, f.id AS filter_id FROM pod_cat_filter cf INNER JOIN pod_filter fm ON cf.filter_id = fm.id AND fm.is_split = 0 AND fm.is_active INNER JOIN pod_good_filter gf USE INDEX (idx_cat_filter_good) ON gf.filter_id = cf.filter_id AND gf.cat_id IN (3297,437,447,446) AND gf.filter_id = 461 INNER JOIN pod_filter f ON gf.filter_id_value = f.id AND f.is_active INNER JOIN tmp_base_goods t ON gf.id_good = t.id WHERE cf.category_id = 3297 [0.0023829936981201 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_counts_1gld7465003a2qn38s2t8bke43_6a2fde8cc4006; CREATE TEMPORARY TABLE tmp_counts_1gld7465003a2qn38s2t8bke43_6a2fde8cc4006 ( filter_id INT NOT NULL PRIMARY KEY, count INT NOT NULL ) ENGINE=MEMORY; [0.00017881393432617 sec]
INSERT INTO tmp_counts_1gld7465003a2qn38s2t8bke43_6a2fde8cc4006 (filter_id, count) SELECT p.filter_id, COUNT(*) AS count FROM tmp_pairs_1gld7465003a2qn38s2t8bke43_6a2fde8cc4006 p GROUP BY p.filter_id [0.00016498565673828 sec]
INSERT IGNORE INTO tmp_counts_1gld7465003a2qn38s2t8bke43_6a2fde8cc4006 (filter_id, count) SELECT pf.id, 0 FROM pod_filter pf LEFT JOIN tmp_counts_1gld7465003a2qn38s2t8bke43_6a2fde8cc4006 c ON c.filter_id = pf.id WHERE pf.id in (462,463,466) AND c.filter_id IS NULL [0.00014495849609375 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_1gld7465003a2qn38s2t8bke43_6a2fde8cc4006 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.00016212463378906 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_pairs_1gld7465003a2qn38s2t8bke43_6a2fde8cc4006 [0.00012493133544922 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_counts_1gld7465003a2qn38s2t8bke43_6a2fde8cc4006 [5.8889389038086E-5 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_pairs_1gld7465003a2qn38s2t8bke43_6a2fde8cc50ae; CREATE TEMPORARY TABLE tmp_pairs_1gld7465003a2qn38s2t8bke43_6a2fde8cc50ae ( goods_id INT NOT NULL, filter_id INT NOT NULL, PRIMARY KEY (goods_id, filter_id) ) ENGINE=MEMORY; [0.00025200843811035 sec]
INSERT INTO tmp_pairs_1gld7465003a2qn38s2t8bke43_6a2fde8cc50ae (goods_id, filter_id) SELECT DISTINCT t.id AS goods_id, f.id AS filter_id FROM pod_cat_filter cf INNER JOIN pod_filter fm ON cf.filter_id = fm.id AND fm.is_split = 0 AND fm.is_active INNER JOIN pod_good_filter gf USE INDEX (idx_cat_filter_good) ON gf.filter_id = cf.filter_id AND gf.cat_id IN (3297,437,447,446) AND gf.filter_id = 3436 INNER JOIN pod_filter f ON gf.filter_id_value = f.id AND f.is_active INNER JOIN tmp_base_goods t ON gf.id_good = t.id WHERE cf.category_id = 3297 [0.002208948135376 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_counts_1gld7465003a2qn38s2t8bke43_6a2fde8cc50ae; CREATE TEMPORARY TABLE tmp_counts_1gld7465003a2qn38s2t8bke43_6a2fde8cc50ae ( filter_id INT NOT NULL PRIMARY KEY, count INT NOT NULL ) ENGINE=MEMORY; [0.00029397010803223 sec]
INSERT INTO tmp_counts_1gld7465003a2qn38s2t8bke43_6a2fde8cc50ae (filter_id, count) SELECT p.filter_id, COUNT(*) AS count FROM tmp_pairs_1gld7465003a2qn38s2t8bke43_6a2fde8cc50ae p GROUP BY p.filter_id [0.0003361701965332 sec]
INSERT IGNORE INTO tmp_counts_1gld7465003a2qn38s2t8bke43_6a2fde8cc50ae (filter_id, count) SELECT pf.id, 0 FROM pod_filter pf LEFT JOIN tmp_counts_1gld7465003a2qn38s2t8bke43_6a2fde8cc50ae c ON c.filter_id = pf.id WHERE pf.id in (3445,3460) AND c.filter_id IS NULL [0.00032401084899902 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_1gld7465003a2qn38s2t8bke43_6a2fde8cc50ae 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.00035190582275391 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_pairs_1gld7465003a2qn38s2t8bke43_6a2fde8cc50ae [0.00029301643371582 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_counts_1gld7465003a2qn38s2t8bke43_6a2fde8cc50ae [9.8943710327148E-5 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_A_1gld7465003a2qn38s2t8bke43_6a2fde8cc6402; CREATE TEMPORARY TABLE tmp_A_1gld7465003a2qn38s2t8bke43_6a2fde8cc6402 ( entry INT NOT NULL, sub_icon_id INT NOT NULL, PRIMARY KEY (entry, sub_icon_id), INDEX idx_sub_icon_id (sub_icon_id) ) ENGINE=MEMORY; [0.00023293495178223 sec]
INSERT IGNORE INTO tmp_A_1gld7465003a2qn38s2t8bke43_6a2fde8cc6402 (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:3297,437,447,446 */ FROM tmp_base_goods g INNER JOIN pod_good_filter gf0 ON g.id = gf0.id_good AND gf0.filter_id_value in (462,463,466) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (3445,3460) WHERE g.brand_id IN (1600,2615,1470) AND g.is_present AND 1 UNION SELECT go.id as id, g.id as entry, go.sub_icon_id /* cats:3297,437,447,446 */ 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 (462,463,466) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (3445,3460) WHERE g.brand_id IN (1600,2615,1470) AND 1 ) A [0.00096297264099121 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_counts_1gld7465003a2qn38s2t8bke43_6a2fde8cc6402; CREATE TEMPORARY TABLE tmp_counts_1gld7465003a2qn38s2t8bke43_6a2fde8cc6402 ( sub_icon_id INT NOT NULL PRIMARY KEY, count INT NOT NULL ) ENGINE=MEMORY; [0.0003199577331543 sec]
INSERT IGNORE INTO tmp_counts_1gld7465003a2qn38s2t8bke43_6a2fde8cc6402 (sub_icon_id, count) SELECT sub_icon_id, COUNT(DISTINCT entry) AS count FROM ( SELECT A.entry, A.sub_icon_id FROM tmp_A_1gld7465003a2qn38s2t8bke43_6a2fde8cc6402 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.00035309791564941 sec]
SELECT c.sub_icon_id AS id, c.count, si.entry, si.name AS name, si.url FROM tmp_counts_1gld7465003a2qn38s2t8bke43_6a2fde8cc6402 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.00022315979003906 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_A_1gld7465003a2qn38s2t8bke43_6a2fde8cc6402 [0.00020408630371094 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_counts_1gld7465003a2qn38s2t8bke43_6a2fde8cc6402 [0.00012111663818359 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_base_goods; DROP TEMPORARY TABLE IF EXISTS tmp_sub_goods [0.00016999244689941 sec]
Низкие цены на Детские конструкторы Magplayer ... Stem (Maгплaиeр ... Стeм) – большой выбор, фото. Купить Детские конструкторы Magplayer ... Stem (Maгплaиeр ... Стeм) в Киеве и Украине

DEVELOPMENT🌷СКИДКИ ДО 70%

ПЕРЕЙТИ

Детские конструкторы Magplayer ... Stem