SELECT url_to, r404 FROM pod_redirect WHERE BINARY REPLACE(url_from,'/ru/','/') = '/konstruktory_kits/o_10-developing-constructor_sets-construction_equipment-xtrem_bots-stem.html' LIMIT 0,1 [0.00022101402282715 sec]
SELECT pod_filter.id,pod_filter.url FROM pod_filter WHERE BINARY pod_filter.url IN ('o_10','developing','constructor_sets','construction_equipment','xtrem_bots','stem') order by url [0.00098085403442383 sec]
SELECT pod_sub_icon.id,pod_sub_icon.url FROM pod_sub_icon WHERE BINARY pod_sub_icon.url IN ('o_10','developing','constructor_sets','construction_equipment','xtrem_bots','stem') order by url [0.00072288513183594 sec]
select id,url from pod_cat_brand where BINARY url IN ('o_10','developing','constructor_sets','construction_equipment','xtrem_bots','stem') [0.0012538433074951 sec]
SELECT id, url FROM pod_filter WHERE url IN ('o_10','developing','constructor_sets','construction_equipment','xtrem_bots','stem') [0.00042915344238281 sec]
SELECT id, url FROM pod_sub_icon WHERE url IN ('o_10','developing','constructor_sets','construction_equipment','xtrem_bots','stem') [0.00035500526428223 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 (3444,466,463,371) and f.is_active AND mf.is_active ORDER BY mf.id, f.id [0.0002291202545166 sec]
SELECT g.id -- основні FROM pod_cat_good g INNER JOIN pod_good_filter gf0 ON g.id = gf0.id_good AND gf0.filter_id_value in (371) 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 (3444) WHERE g.cat_id IN (3297,437,447,446) AND g.brand_id IN (2460,2615) AND g.is_present AND g.is_present_all_mods AND g.entry =0 AND g.is_active UNION SELECT g.id -- основні в допкатегорії FROM pod_cat_good g INNER JOIN pod_dop_cat_category dc ON dc.good_id = g.id INNER JOIN pod_good_filter gf0 ON g.id = gf0.id_good AND gf0.filter_id_value in (371) 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 (3444) WHERE dc.dop_cat_id IN (3297,437,447,446) AND g.brand_id IN (2460,2615) AND g.is_present AND g.is_present_all_mods AND g.entry =0 AND g.is_active UNION SELECT g.id -- підтовари FROM pod_cat_good go INNER JOIN pod_cat_good g ON go.entry = g.id INNER JOIN pod_good_filter gf0 ON go.id = gf0.id_good AND gf0.filter_id_value in (371) 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 (3444) WHERE g.cat_id IN (3297,437,447,446) AND g.brand_id IN (2460,2615) AND go.is_present AND go.is_active AND g.is_present_all_mods AND g.is_active UNION SELECT g.id -- підтовари в допкатегорії FROM pod_cat_good go INNER JOIN pod_cat_good g ON go.entry = g.id INNER JOIN pod_dop_cat_category dc ON dc.good_id = g.id INNER JOIN pod_good_filter gf0 ON go.id = gf0.id_good AND gf0.filter_id_value in (371) 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 (3444) WHERE dc.dop_cat_id IN (3297,437,447,446) AND g.brand_id IN (2460,2615) AND go.is_present AND go.is_active AND g.is_present_all_mods AND g.is_active [0.014321088790894 sec]
CREATE TEMPORARY TABLE temp_brand_counts_6a2a7c2e922ec ( id INT, gid INT, INDEX idx_id (id), INDEX idx_gid (gid) ) [0.00033879280090332 sec]
INSERT INTO temp_brand_counts_6a2a7c2e922ec (id, gid) SELECT g.brand_id AS id, g.id AS gid -- основні FROM pod_cat_good g INNER JOIN pod_good_filter gf0 ON g.id = gf0.id_good AND gf0.filter_id_value in (371) 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 (3444) WHERE g.cat_id IN (3297,437,447,446) AND g.is_present AND g.is_present_all_mods AND g.entry =0 AND g.is_active UNION SELECT g.brand_id AS id, g.id AS gid -- основні в допкатегорії FROM pod_cat_good g INNER JOIN pod_dop_cat_category dc ON dc.good_id = g.id INNER JOIN pod_good_filter gf0 ON g.id = gf0.id_good AND gf0.filter_id_value in (371) 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 (3444) WHERE dc.dop_cat_id IN (3297,437,447,446) AND g.is_present AND g.is_present_all_mods AND g.entry =0 AND g.is_active UNION SELECT g.brand_id AS id, g.id AS gid -- підтовари FROM pod_cat_good go INNER JOIN pod_cat_good g ON go.entry = g.id INNER JOIN pod_good_filter gf0 ON go.id = gf0.id_good AND gf0.filter_id_value in (371) 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 (3444) WHERE g.cat_id IN (3297,437,447,446) AND go.is_present AND go.is_active AND g.is_present_all_mods AND g.is_active UNION SELECT g.brand_id AS id, g.id AS gid -- підтовари в допкатегорії FROM pod_cat_good go INNER JOIN pod_cat_good g ON go.entry = g.id INNER JOIN pod_dop_cat_category dc ON dc.good_id = g.id INNER JOIN pod_good_filter gf0 ON go.id = gf0.id_good AND gf0.filter_id_value in (371) 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 (3444) WHERE dc.dop_cat_id IN (3297,437,447,446) AND go.is_present AND go.is_active AND g.is_present_all_mods AND g.is_active UNION SELECT id, null gid FROM pod_cat_category WHERE id in (2460,2615) [0.0020458698272705 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_6a2a7c2e922ec 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.00030279159545898 sec]
DROP TEMPORARY TABLE IF EXISTS temp_brand_counts_6a2a7c2e922ec [9.2029571533203E-5 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 -- основні FROM pod_cat_good g INNER JOIN pod_good_filter gf0 ON g.id = gf0.id_good AND gf0.filter_id_value in (371) 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 (3444) WHERE g.cat_id IN (3297,437,447,446) AND g.brand_id IN (2460,2615) AND g.is_present AND g.is_present_all_mods AND g.entry =0 AND g.is_active UNION SELECT MIN(g.price) AS min_price, MAX(g.price) AS max_price -- основні в допкатегорії FROM pod_cat_good g INNER JOIN pod_dop_cat_category dc ON dc.good_id = g.id INNER JOIN pod_good_filter gf0 ON g.id = gf0.id_good AND gf0.filter_id_value in (371) 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 (3444) WHERE dc.dop_cat_id IN (3297,437,447,446) AND g.brand_id IN (2460,2615) AND g.is_present AND g.is_present_all_mods AND g.entry =0 AND g.is_active UNION SELECT MIN(go.price) AS min_price, MAX(go.price) AS max_price -- підтовари FROM pod_cat_good go INNER JOIN pod_cat_good g ON go.entry = g.id INNER JOIN pod_good_filter gf0 ON go.id = gf0.id_good AND gf0.filter_id_value in (371) 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 (3444) WHERE g.cat_id IN (3297,437,447,446) AND g.brand_id IN (2460,2615) AND go.is_present AND go.is_active AND g.is_present_all_mods AND g.is_active UNION SELECT MIN(go.price) AS min_price, MAX(go.price) AS max_price -- підтовари в допкатегорії FROM pod_cat_good go INNER JOIN pod_cat_good g ON go.entry = g.id INNER JOIN pod_dop_cat_category dc ON dc.good_id = g.id INNER JOIN pod_good_filter gf0 ON go.id = gf0.id_good AND gf0.filter_id_value in (371) 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 (3444) WHERE dc.dop_cat_id IN (3297,437,447,446) AND g.brand_id IN (2460,2615) AND go.is_present AND go.is_active AND g.is_present_all_mods AND g.is_active ) A [0.0010640621185303 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_A_cror8ioce3mg54p6m826oo6v6t_6a2a7c2e954d2; CREATE TEMPORARY TABLE tmp_A_cror8ioce3mg54p6m826oo6v6t_6a2a7c2e954d2 ( id INT NOT NULL, PRIMARY KEY (id) ) ENGINE=MEMORY; [0.00017690658569336 sec]
INSERT INTO tmp_A_cror8ioce3mg54p6m826oo6v6t_6a2a7c2e954d2 (id) SELECT A.id FROM ( SELECT g.id -- основні FROM pod_cat_good g INNER JOIN pod_good_filter gf0 ON g.id = gf0.id_good AND gf0.filter_id_value in (371) 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 (3444) WHERE g.cat_id IN (3297,437,447,446) AND g.brand_id IN (2460,2615) AND g.is_present AND g.is_present_all_mods AND g.entry =0 AND g.is_active UNION SELECT g.id -- основні в допкатегорії FROM pod_cat_good g INNER JOIN pod_dop_cat_category dc ON dc.good_id = g.id INNER JOIN pod_good_filter gf0 ON g.id = gf0.id_good AND gf0.filter_id_value in (371) 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 (3444) WHERE dc.dop_cat_id IN (3297,437,447,446) AND g.brand_id IN (2460,2615) AND g.is_present AND g.is_present_all_mods AND g.entry =0 AND g.is_active UNION SELECT g.id -- підтовари FROM pod_cat_good go INNER JOIN pod_cat_good g ON go.entry = g.id INNER JOIN pod_good_filter gf0 ON go.id = gf0.id_good AND gf0.filter_id_value in (371) 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 (3444) WHERE g.cat_id IN (3297,437,447,446) AND g.brand_id IN (2460,2615) AND go.is_present AND go.is_active AND g.is_present_all_mods AND g.is_active UNION SELECT g.id -- підтовари в допкатегорії FROM pod_cat_good go INNER JOIN pod_cat_good g ON go.entry = g.id INNER JOIN pod_dop_cat_category dc ON dc.good_id = g.id INNER JOIN pod_good_filter gf0 ON go.id = gf0.id_good AND gf0.filter_id_value in (371) 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 (3444) WHERE dc.dop_cat_id IN (3297,437,447,446) AND g.brand_id IN (2460,2615) AND go.is_present AND go.is_active AND g.is_present_all_mods AND g.is_active ) A [0.0014519691467285 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_pairs_cror8ioce3mg54p6m826oo6v6t_6a2a7c2e954d2; CREATE TEMPORARY TABLE tmp_pairs_cror8ioce3mg54p6m826oo6v6t_6a2a7c2e954d2 ( goods_id INT NOT NULL, filter_id INT NOT NULL, PRIMARY KEY (goods_id, filter_id) ) ENGINE=MEMORY; [0.00018215179443359 sec]
INSERT INTO tmp_pairs_cror8ioce3mg54p6m826oo6v6t_6a2a7c2e954d2 (goods_id, filter_id) SELECT DISTINCT A.id AS goods_id, f.id AS filter_id FROM tmp_A_cror8ioce3mg54p6m826oo6v6t_6a2a7c2e954d2 A INNER JOIN pod_good_filter gf ON A.id = gf.id_good AND gf.filter_id_value NOT IN (371,463,466,3444) INNER JOIN pod_cat_filter cf ON gf.filter_id = cf.filter_id AND cf.category_id = 3297 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.0083069801330566 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_counts_cror8ioce3mg54p6m826oo6v6t_6a2a7c2e954d2; CREATE TEMPORARY TABLE tmp_counts_cror8ioce3mg54p6m826oo6v6t_6a2a7c2e954d2 ( filter_id INT NOT NULL PRIMARY KEY, count INT NOT NULL ) ENGINE=MEMORY; [0.00028300285339355 sec]
INSERT IGNORE INTO tmp_counts_cror8ioce3mg54p6m826oo6v6t_6a2a7c2e954d2 (filter_id, count) SELECT p.filter_id, COUNT(*) AS count FROM tmp_pairs_cror8ioce3mg54p6m826oo6v6t_6a2a7c2e954d2 p GROUP BY p.filter_id [0.00020194053649902 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_cror8ioce3mg54p6m826oo6v6t_6a2a7c2e954d2 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.00020003318786621 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_A_cror8ioce3mg54p6m826oo6v6t_6a2a7c2e954d2 [0.00016498565673828 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_pairs_cror8ioce3mg54p6m826oo6v6t_6a2a7c2e954d2 [6.5088272094727E-5 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_counts_cror8ioce3mg54p6m826oo6v6t_6a2a7c2e954d2 [6.6995620727539E-5 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_A_cror8ioce3mg54p6m826oo6v6t_6a2a7c2e9829b; CREATE TEMPORARY TABLE tmp_A_cror8ioce3mg54p6m826oo6v6t_6a2a7c2e9829b ( id INT NOT NULL, entry INT NOT NULL, PRIMARY KEY (id), KEY idx_entry (entry) ) ENGINE=MEMORY; [0.00013613700866699 sec]
INSERT INTO tmp_A_cror8ioce3mg54p6m826oo6v6t_6a2a7c2e9829b (id, entry) SELECT A.id, A.entry FROM ( SELECT g.id as id, g.id as entry -- основні FROM pod_cat_good g INNER JOIN pod_good_filter gf0 ON g.id = gf0.id_good AND gf0.filter_id_value in (371) 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 (3444) WHERE g.cat_id IN (3297,437,447,446) AND g.brand_id IN (2460,2615) AND g.is_present AND g.is_present_all_mods AND g.entry =0 AND g.is_active UNION SELECT g.id as id, g.id as entry -- основні в допкатегорії FROM pod_cat_good g INNER JOIN pod_dop_cat_category dc ON dc.good_id = g.id INNER JOIN pod_good_filter gf0 ON g.id = gf0.id_good AND gf0.filter_id_value in (371) 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 (3444) WHERE dc.dop_cat_id IN (3297,437,447,446) AND g.brand_id IN (2460,2615) AND g.is_present AND g.is_present_all_mods AND g.entry =0 AND g.is_active UNION SELECT go.id as id, g.id as entry -- підтовари FROM pod_cat_good go INNER JOIN pod_cat_good g ON go.entry = g.id INNER JOIN pod_good_filter gf0 ON go.id = gf0.id_good AND gf0.filter_id_value in (371) 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 (3444) WHERE g.cat_id IN (3297,437,447,446) AND g.brand_id IN (2460,2615) AND go.is_present AND go.is_active AND g.is_present_all_mods AND g.is_active UNION SELECT go.id as id, g.id as entry -- підтовари в допкатегорії FROM pod_cat_good go INNER JOIN pod_cat_good g ON go.entry = g.id INNER JOIN pod_dop_cat_category dc ON dc.good_id = g.id INNER JOIN pod_good_filter gf0 ON go.id = gf0.id_good AND gf0.filter_id_value in (371) 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 (3444) WHERE dc.dop_cat_id IN (3297,437,447,446) AND g.brand_id IN (2460,2615) AND go.is_present AND go.is_active AND g.is_present_all_mods AND g.is_active ) A [0.0014758110046387 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_pairs_cror8ioce3mg54p6m826oo6v6t_6a2a7c2e9829b; CREATE TEMPORARY TABLE tmp_pairs_cror8ioce3mg54p6m826oo6v6t_6a2a7c2e9829b ( goods_id INT NOT NULL, filter_id INT NOT NULL, PRIMARY KEY (goods_id, filter_id) ) ENGINE=MEMORY; [0.00017786026000977 sec]
INSERT INTO tmp_pairs_cror8ioce3mg54p6m826oo6v6t_6a2a7c2e9829b (goods_id, filter_id) SELECT DISTINCT A.entry AS goods_id, f.id AS filter_id FROM tmp_A_cror8ioce3mg54p6m826oo6v6t_6a2a7c2e9829b A INNER JOIN pod_good_filter gf ON A.id = gf.id_good AND gf.filter_id_value NOT IN (371,463,466,3444) INNER JOIN pod_cat_filter cf ON gf.filter_id = cf.filter_id AND cf.category_id = 3297 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.00046610832214355 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_counts_cror8ioce3mg54p6m826oo6v6t_6a2a7c2e9829b; CREATE TEMPORARY TABLE tmp_counts_cror8ioce3mg54p6m826oo6v6t_6a2a7c2e9829b ( filter_id INT NOT NULL PRIMARY KEY, count INT NOT NULL ) ENGINE=MEMORY; [0.00019001960754395 sec]
INSERT IGNORE INTO tmp_counts_cror8ioce3mg54p6m826oo6v6t_6a2a7c2e9829b (filter_id, count) SELECT p.filter_id, COUNT(*) AS count FROM tmp_pairs_cror8ioce3mg54p6m826oo6v6t_6a2a7c2e9829b p GROUP BY p.filter_id [0.00015997886657715 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_cror8ioce3mg54p6m826oo6v6t_6a2a7c2e9829b 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.00019001960754395 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_A_cror8ioce3mg54p6m826oo6v6t_6a2a7c2e9829b [0.00014495849609375 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_pairs_cror8ioce3mg54p6m826oo6v6t_6a2a7c2e9829b [6.1988830566406E-5 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_counts_cror8ioce3mg54p6m826oo6v6t_6a2a7c2e9829b [5.793571472168E-5 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_A_cror8ioce3mg54p6m826oo6v6t_6a2a7c2e99213; CREATE TEMPORARY TABLE tmp_A_cror8ioce3mg54p6m826oo6v6t_6a2a7c2e99213 ( id INT NOT NULL, entry INT NOT NULL, PRIMARY KEY (id), KEY idx_entry (entry) ) ENGINE=MEMORY [0.00018692016601562 sec]
INSERT INTO tmp_A_cror8ioce3mg54p6m826oo6v6t_6a2a7c2e99213 (id, entry) SELECT A.id, A.entry FROM ( SELECT g.id as id, g.id as entry -- основні FROM pod_cat_good g INNER JOIN pod_good_filter gf0 ON g.id = gf0.id_good AND gf0.filter_id_value in (463,466) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (3444) WHERE g.cat_id IN (3297,437,447,446) AND g.brand_id IN (2460,2615) AND g.is_present AND g.is_present_all_mods AND g.entry =0 AND g.is_active UNION SELECT g.id as id, g.id as entry -- основні в допкатегорії FROM pod_cat_good g INNER JOIN pod_dop_cat_category dc ON dc.good_id = g.id INNER JOIN pod_good_filter gf0 ON g.id = gf0.id_good AND gf0.filter_id_value in (463,466) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (3444) WHERE dc.dop_cat_id IN (3297,437,447,446) AND g.brand_id IN (2460,2615) AND g.is_present AND g.is_present_all_mods AND g.entry =0 AND g.is_active UNION SELECT go.id as id, g.id as entry -- підтовари FROM pod_cat_good go INNER JOIN pod_cat_good g ON go.entry = g.id INNER JOIN pod_good_filter gf0 ON g.id = gf0.id_good AND gf0.filter_id_value in (463,466) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (3444) WHERE g.cat_id IN (3297,437,447,446) AND g.brand_id IN (2460,2615) AND go.is_present AND go.is_active AND g.is_present_all_mods AND g.is_active UNION SELECT go.id as id, g.id as entry -- підтовари в допкатегорії FROM pod_cat_good go INNER JOIN pod_cat_good g ON go.entry = g.id INNER JOIN pod_dop_cat_category dc ON dc.good_id = g.id INNER JOIN pod_good_filter gf0 ON g.id = gf0.id_good AND gf0.filter_id_value in (463,466) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (3444) WHERE dc.dop_cat_id IN (3297,437,447,446) AND g.brand_id IN (2460,2615) AND go.is_present AND go.is_active AND g.is_present_all_mods AND g.is_active ) A [0.0014488697052002 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_pairs_cror8ioce3mg54p6m826oo6v6t_6a2a7c2e99213; CREATE TEMPORARY TABLE tmp_pairs_cror8ioce3mg54p6m826oo6v6t_6a2a7c2e99213 ( goods_id INT NOT NULL, filter_id INT NOT NULL, PRIMARY KEY (goods_id, filter_id) ) ENGINE=MEMORY [0.0001521110534668 sec]
INSERT INTO tmp_pairs_cror8ioce3mg54p6m826oo6v6t_6a2a7c2e99213 (goods_id, filter_id) SELECT DISTINCT A.entry AS goods_id, f.id AS filter_id FROM tmp_A_cror8ioce3mg54p6m826oo6v6t_6a2a7c2e99213 A INNER JOIN pod_good_filter gf ON A.id = gf.id_good AND gf.filter_id = 262 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.00054407119750977 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_counts_cror8ioce3mg54p6m826oo6v6t_6a2a7c2e99213; CREATE TEMPORARY TABLE tmp_counts_cror8ioce3mg54p6m826oo6v6t_6a2a7c2e99213 ( filter_id INT NOT NULL PRIMARY KEY, count INT NOT NULL ) ENGINE=MEMORY [0.00013399124145508 sec]
INSERT INTO tmp_counts_cror8ioce3mg54p6m826oo6v6t_6a2a7c2e99213 (filter_id, count) SELECT p.filter_id, COUNT(*) AS count FROM tmp_pairs_cror8ioce3mg54p6m826oo6v6t_6a2a7c2e99213 p GROUP BY p.filter_id [0.00014710426330566 sec]
INSERT INTO tmp_counts_cror8ioce3mg54p6m826oo6v6t_6a2a7c2e99213 (filter_id, count) SELECT pf.id, 0 FROM pod_filter pf LEFT JOIN tmp_counts_cror8ioce3mg54p6m826oo6v6t_6a2a7c2e99213 c ON c.filter_id = pf.id WHERE pf.id in (371) AND c.filter_id IS NULL [0.00010800361633301 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_cror8ioce3mg54p6m826oo6v6t_6a2a7c2e99213 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.00016903877258301 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_A_cror8ioce3mg54p6m826oo6v6t_6a2a7c2e99213 [0.00011610984802246 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_pairs_cror8ioce3mg54p6m826oo6v6t_6a2a7c2e99213 [4.9114227294922E-5 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_counts_cror8ioce3mg54p6m826oo6v6t_6a2a7c2e99213 [4.6968460083008E-5 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 (3444,371) and f.is_active AND mf.is_active ORDER BY mf.id, f.id [0.00021100044250488 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_A_cror8ioce3mg54p6m826oo6v6t_6a2a7c2e9a26b; CREATE TEMPORARY TABLE tmp_A_cror8ioce3mg54p6m826oo6v6t_6a2a7c2e9a26b ( id INT NOT NULL, PRIMARY KEY (id) ) ENGINE=MEMORY; [0.00015997886657715 sec]
INSERT INTO tmp_A_cror8ioce3mg54p6m826oo6v6t_6a2a7c2e9a26b (id) SELECT A.id FROM ( SELECT g.id -- основні FROM pod_cat_good g INNER JOIN pod_good_filter gf0 ON g.id = gf0.id_good AND gf0.filter_id_value in (371) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (3444) WHERE g.cat_id IN (3297,437,447,446) AND g.brand_id IN (2460,2615) AND g.is_present AND g.is_present_all_mods AND g.entry =0 AND g.is_active UNION SELECT g.id -- основні в допкатегорії FROM pod_cat_good g INNER JOIN pod_dop_cat_category dc ON dc.good_id = g.id INNER JOIN pod_good_filter gf0 ON g.id = gf0.id_good AND gf0.filter_id_value in (371) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (3444) WHERE dc.dop_cat_id IN (3297,437,447,446) AND g.brand_id IN (2460,2615) AND g.is_present AND g.is_present_all_mods AND g.entry =0 AND g.is_active UNION SELECT g.id -- підтовари FROM pod_cat_good go INNER JOIN pod_cat_good g ON go.entry = g.id INNER JOIN pod_good_filter gf0 ON go.id = gf0.id_good AND gf0.filter_id_value in (371) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (3444) WHERE g.cat_id IN (3297,437,447,446) AND g.brand_id IN (2460,2615) AND go.is_present AND go.is_active AND g.is_present_all_mods AND g.is_active UNION SELECT g.id -- підтовари в допкатегорії FROM pod_cat_good go INNER JOIN pod_cat_good g ON go.entry = g.id INNER JOIN pod_dop_cat_category dc ON dc.good_id = g.id INNER JOIN pod_good_filter gf0 ON go.id = gf0.id_good AND gf0.filter_id_value in (371) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (3444) WHERE dc.dop_cat_id IN (3297,437,447,446) AND g.brand_id IN (2460,2615) AND go.is_present AND go.is_active AND g.is_present_all_mods AND g.is_active ) A [0.0010080337524414 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_pairs_cror8ioce3mg54p6m826oo6v6t_6a2a7c2e9a26b; CREATE TEMPORARY TABLE tmp_pairs_cror8ioce3mg54p6m826oo6v6t_6a2a7c2e9a26b ( goods_id INT NOT NULL, filter_id INT NOT NULL, PRIMARY KEY (goods_id, filter_id) ) ENGINE=MEMORY; [0.00014090538024902 sec]
INSERT INTO tmp_pairs_cror8ioce3mg54p6m826oo6v6t_6a2a7c2e9a26b (goods_id, filter_id) SELECT DISTINCT A.id AS goods_id, f.id AS filter_id FROM tmp_A_cror8ioce3mg54p6m826oo6v6t_6a2a7c2e9a26b A INNER JOIN pod_good_filter gf ON A.id = gf.id_good AND gf.filter_id = 461 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.0013689994812012 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_counts_cror8ioce3mg54p6m826oo6v6t_6a2a7c2e9a26b; CREATE TEMPORARY TABLE tmp_counts_cror8ioce3mg54p6m826oo6v6t_6a2a7c2e9a26b ( filter_id INT NOT NULL PRIMARY KEY, count INT NOT NULL ) ENGINE=MEMORY; [0.00016212463378906 sec]
INSERT INTO tmp_counts_cror8ioce3mg54p6m826oo6v6t_6a2a7c2e9a26b (filter_id, count) SELECT p.filter_id, COUNT(*) AS count FROM tmp_pairs_cror8ioce3mg54p6m826oo6v6t_6a2a7c2e9a26b p GROUP BY p.filter_id [0.00014710426330566 sec]
INSERT IGNORE INTO tmp_counts_cror8ioce3mg54p6m826oo6v6t_6a2a7c2e9a26b (filter_id, count) SELECT pf.id, 0 FROM pod_filter pf LEFT JOIN tmp_counts_cror8ioce3mg54p6m826oo6v6t_6a2a7c2e9a26b c ON c.filter_id = pf.id WHERE pf.id in (463,466) AND c.filter_id IS NULL [0.00016617774963379 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_cror8ioce3mg54p6m826oo6v6t_6a2a7c2e9a26b 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.00018906593322754 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_A_cror8ioce3mg54p6m826oo6v6t_6a2a7c2e9a26b [0.00012612342834473 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_pairs_cror8ioce3mg54p6m826oo6v6t_6a2a7c2e9a26b [5.2928924560547E-5 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_counts_cror8ioce3mg54p6m826oo6v6t_6a2a7c2e9a26b [4.7922134399414E-5 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_A_cror8ioce3mg54p6m826oo6v6t_6a2a7c2e9b40f; CREATE TEMPORARY TABLE tmp_A_cror8ioce3mg54p6m826oo6v6t_6a2a7c2e9b40f ( id INT NOT NULL, PRIMARY KEY (id) ) ENGINE=MEMORY; [0.00013208389282227 sec]
INSERT INTO tmp_A_cror8ioce3mg54p6m826oo6v6t_6a2a7c2e9b40f (id) SELECT A.id FROM ( SELECT g.id -- основні FROM pod_cat_good g INNER JOIN pod_good_filter gf0 ON g.id = gf0.id_good AND gf0.filter_id_value in (371) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (463,466) WHERE g.cat_id IN (3297,437,447,446) AND g.brand_id IN (2460,2615) AND g.is_present AND g.is_present_all_mods AND g.entry =0 AND g.is_active UNION SELECT g.id -- основні в допкатегорії FROM pod_cat_good g INNER JOIN pod_dop_cat_category dc ON dc.good_id = g.id INNER JOIN pod_good_filter gf0 ON g.id = gf0.id_good AND gf0.filter_id_value in (371) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (463,466) WHERE dc.dop_cat_id IN (3297,437,447,446) AND g.brand_id IN (2460,2615) AND g.is_present AND g.is_present_all_mods AND g.entry =0 AND g.is_active UNION SELECT g.id -- підтовари FROM pod_cat_good go INNER JOIN pod_cat_good g ON go.entry = g.id INNER JOIN pod_good_filter gf0 ON go.id = gf0.id_good AND gf0.filter_id_value in (371) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (463,466) WHERE g.cat_id IN (3297,437,447,446) AND g.brand_id IN (2460,2615) AND go.is_present AND go.is_active AND g.is_present_all_mods AND g.is_active UNION SELECT g.id -- підтовари в допкатегорії FROM pod_cat_good go INNER JOIN pod_cat_good g ON go.entry = g.id INNER JOIN pod_dop_cat_category dc ON dc.good_id = g.id INNER JOIN pod_good_filter gf0 ON go.id = gf0.id_good AND gf0.filter_id_value in (371) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (463,466) WHERE dc.dop_cat_id IN (3297,437,447,446) AND g.brand_id IN (2460,2615) AND go.is_present AND go.is_active AND g.is_present_all_mods AND g.is_active ) A [0.0040459632873535 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_pairs_cror8ioce3mg54p6m826oo6v6t_6a2a7c2e9b40f; CREATE TEMPORARY TABLE tmp_pairs_cror8ioce3mg54p6m826oo6v6t_6a2a7c2e9b40f ( goods_id INT NOT NULL, filter_id INT NOT NULL, PRIMARY KEY (goods_id, filter_id) ) ENGINE=MEMORY; [0.00021886825561523 sec]
INSERT INTO tmp_pairs_cror8ioce3mg54p6m826oo6v6t_6a2a7c2e9b40f (goods_id, filter_id) SELECT DISTINCT A.id AS goods_id, f.id AS filter_id FROM tmp_A_cror8ioce3mg54p6m826oo6v6t_6a2a7c2e9b40f A INNER JOIN pod_good_filter gf ON A.id = gf.id_good AND gf.filter_id = 3436 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.0014078617095947 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_counts_cror8ioce3mg54p6m826oo6v6t_6a2a7c2e9b40f; CREATE TEMPORARY TABLE tmp_counts_cror8ioce3mg54p6m826oo6v6t_6a2a7c2e9b40f ( filter_id INT NOT NULL PRIMARY KEY, count INT NOT NULL ) ENGINE=MEMORY; [0.0001671314239502 sec]
INSERT INTO tmp_counts_cror8ioce3mg54p6m826oo6v6t_6a2a7c2e9b40f (filter_id, count) SELECT p.filter_id, COUNT(*) AS count FROM tmp_pairs_cror8ioce3mg54p6m826oo6v6t_6a2a7c2e9b40f p GROUP BY p.filter_id [0.00014710426330566 sec]
INSERT IGNORE INTO tmp_counts_cror8ioce3mg54p6m826oo6v6t_6a2a7c2e9b40f (filter_id, count) SELECT pf.id, 0 FROM pod_filter pf LEFT JOIN tmp_counts_cror8ioce3mg54p6m826oo6v6t_6a2a7c2e9b40f c ON c.filter_id = pf.id WHERE pf.id in (3444) AND c.filter_id IS NULL [0.00010895729064941 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_cror8ioce3mg54p6m826oo6v6t_6a2a7c2e9b40f 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.00015401840209961 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_A_cror8ioce3mg54p6m826oo6v6t_6a2a7c2e9b40f [0.00012707710266113 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_pairs_cror8ioce3mg54p6m826oo6v6t_6a2a7c2e9b40f [5.6982040405273E-5 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_counts_cror8ioce3mg54p6m826oo6v6t_6a2a7c2e9b40f [5.0783157348633E-5 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_A_cror8ioce3mg54p6m826oo6v6t_6a2a7c2e9d099; CREATE TEMPORARY TABLE tmp_A_cror8ioce3mg54p6m826oo6v6t_6a2a7c2e9d099 ( entry INT NOT NULL, sub_icon_id INT NOT NULL, PRIMARY KEY (entry, sub_icon_id) ) ENGINE=MEMORY; [0.00012087821960449 sec]
INSERT IGNORE INTO tmp_A_cror8ioce3mg54p6m826oo6v6t_6a2a7c2e9d099 (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 -- основні FROM pod_cat_good g INNER JOIN pod_good_filter gf0 ON g.id = gf0.id_good AND gf0.filter_id_value in (371) 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 (3444) WHERE g.cat_id IN (3297,437,447,446) AND g.brand_id IN (2460,2615) AND g.is_present AND g.is_present_all_mods AND g.entry =0 AND g.is_active UNION SELECT g.id as id, g.id as entry, g.sub_icon_id -- основні в допкатегорії FROM pod_cat_good g INNER JOIN pod_dop_cat_category dc ON dc.good_id = g.id INNER JOIN pod_good_filter gf0 ON g.id = gf0.id_good AND gf0.filter_id_value in (371) 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 (3444) WHERE dc.dop_cat_id IN (3297,437,447,446) AND g.brand_id IN (2460,2615) AND g.is_present AND g.is_present_all_mods AND g.entry =0 AND g.is_active UNION SELECT go.id as id, g.id as entry, go.sub_icon_id -- підтовари FROM pod_cat_good go INNER JOIN pod_cat_good g ON go.entry = g.id INNER JOIN pod_good_filter gf0 ON go.id = gf0.id_good AND gf0.filter_id_value in (371) 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 (3444) WHERE g.cat_id IN (3297,437,447,446) AND g.brand_id IN (2460,2615) AND go.is_present AND go.is_active AND g.is_present_all_mods AND g.is_active UNION SELECT go.id as id, g.id as entry, go.sub_icon_id -- підтовари в допкатегорії FROM pod_cat_good go INNER JOIN pod_cat_good g ON go.entry = g.id INNER JOIN pod_dop_cat_category dc ON dc.good_id = g.id INNER JOIN pod_good_filter gf0 ON go.id = gf0.id_good AND gf0.filter_id_value in (371) 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 (3444) WHERE dc.dop_cat_id IN (3297,437,447,446) AND g.brand_id IN (2460,2615) AND go.is_present AND go.is_active AND g.is_present_all_mods AND g.is_active ) A [0.0011870861053467 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_counts_cror8ioce3mg54p6m826oo6v6t_6a2a7c2e9d099; CREATE TEMPORARY TABLE tmp_counts_cror8ioce3mg54p6m826oo6v6t_6a2a7c2e9d099 ( sub_icon_id INT NOT NULL PRIMARY KEY, count INT NOT NULL ) ENGINE=MEMORY; [0.00019502639770508 sec]
INSERT IGNORE INTO tmp_counts_cror8ioce3mg54p6m826oo6v6t_6a2a7c2e9d099 (sub_icon_id, count) SELECT sub_icon_id, COUNT(DISTINCT entry) AS count FROM ( SELECT A.entry, A.sub_icon_id FROM tmp_A_cror8ioce3mg54p6m826oo6v6t_6a2a7c2e9d099 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.00018596649169922 sec]
SELECT c.sub_icon_id AS id, c.count, si.entry, si.name AS name, si.url FROM tmp_counts_cror8ioce3mg54p6m826oo6v6t_6a2a7c2e9d099 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.00012898445129395 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_A_cror8ioce3mg54p6m826oo6v6t_6a2a7c2e9d099 [0.00014400482177734 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_counts_cror8ioce3mg54p6m826oo6v6t_6a2a7c2e9d099 [6.1988830566406E-5 sec]
Низкие цены на Детские конструкторы Xtrem Bots ... Stem (КСтрeм Бoц ... Стeм) – большой выбор, фото. Купить Детские конструкторы Xtrem Bots ... Stem (КСтрeм Бoц ... Стeм) в Киеве и Украине

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

ПЕРЕЙТИ

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