SELECT url_to, r404 FROM pod_redirect WHERE BINARY REPLACE(url_from,'/ru/','/') = '/konstruktory_kits/o_3-developing-constructor_sets-18_let-xtrem_bots-picasso-stem.html' LIMIT 0,1 [0.0007021427154541 sec]
SELECT pod_filter.id,pod_filter.url FROM pod_filter WHERE BINARY pod_filter.url IN ('o_3','developing','constructor_sets','18_let','xtrem_bots','picasso','stem') order by url [0.00084996223449707 sec]
SELECT pod_sub_icon.id,pod_sub_icon.url FROM pod_sub_icon WHERE BINARY pod_sub_icon.url IN ('o_3','developing','constructor_sets','18_let','xtrem_bots','picasso','stem') order by url [0.00062394142150879 sec]
select id,url from pod_cat_brand where BINARY url IN ('o_3','developing','constructor_sets','18_let','xtrem_bots','picasso','stem') [0.0010778903961182 sec]
SELECT id, url FROM pod_filter WHERE url IN ('o_3','developing','constructor_sets','18_let','xtrem_bots','picasso','stem') [0.00055503845214844 sec]
SELECT id, url FROM pod_sub_icon WHERE url IN ('o_3','developing','constructor_sets','18_let','xtrem_bots','picasso','stem') [0.00046396255493164 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 (265,3466) 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,2610,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 (265,3466) 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,2610,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 (265,3466) 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,2610,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 (265,3466) 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,2610,2615) AND go.is_present AND go.is_active AND g.is_present_all_mods AND g.is_active [0.012218952178955 sec]
CREATE TEMPORARY TABLE temp_brand_counts_6a2ab02a8d8bf ( id INT, gid INT, INDEX idx_id (id), INDEX idx_gid (gid) ) [0.0011208057403564 sec]
INSERT INTO temp_brand_counts_6a2ab02a8d8bf (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 (265,3466) 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.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 (265,3466) 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.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 (265,3466) 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 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 (265,3466) 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 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,2610,2615) [0.058388948440552 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_6a2ab02a8d8bf 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.00044989585876465 sec]
DROP TEMPORARY TABLE IF EXISTS temp_brand_counts_6a2ab02a8d8bf [0.00010919570922852 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 (265,3466) 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,2610,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 (265,3466) 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,2610,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 (265,3466) 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,2610,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 (265,3466) 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,2610,2615) AND go.is_present AND go.is_active AND g.is_present_all_mods AND g.is_active ) A [0.0018420219421387 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_A_j48se20n1sjv8u0ouco0od38sl_6a2ab02a9e881; CREATE TEMPORARY TABLE tmp_A_j48se20n1sjv8u0ouco0od38sl_6a2ab02a9e881 ( id INT NOT NULL, PRIMARY KEY (id) ) ENGINE=MEMORY; [0.00029993057250977 sec]
INSERT INTO tmp_A_j48se20n1sjv8u0ouco0od38sl_6a2ab02a9e881 (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 (265,3466) 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,2610,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 (265,3466) 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,2610,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 (265,3466) 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,2610,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 (265,3466) 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,2610,2615) AND go.is_present AND go.is_active AND g.is_present_all_mods AND g.is_active ) A [0.0029158592224121 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_pairs_j48se20n1sjv8u0ouco0od38sl_6a2ab02a9e881; CREATE TEMPORARY TABLE tmp_pairs_j48se20n1sjv8u0ouco0od38sl_6a2ab02a9e881 ( goods_id INT NOT NULL, filter_id INT NOT NULL, PRIMARY KEY (goods_id, filter_id) ) ENGINE=MEMORY; [0.00036096572875977 sec]
INSERT INTO tmp_pairs_j48se20n1sjv8u0ouco0od38sl_6a2ab02a9e881 (goods_id, filter_id) SELECT DISTINCT A.id AS goods_id, f.id AS filter_id FROM tmp_A_j48se20n1sjv8u0ouco0od38sl_6a2ab02a9e881 A INNER JOIN pod_good_filter gf ON A.id = gf.id_good AND gf.filter_id_value NOT IN (265,3466,463,466) 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.012794017791748 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_counts_j48se20n1sjv8u0ouco0od38sl_6a2ab02a9e881; CREATE TEMPORARY TABLE tmp_counts_j48se20n1sjv8u0ouco0od38sl_6a2ab02a9e881 ( filter_id INT NOT NULL PRIMARY KEY, count INT NOT NULL ) ENGINE=MEMORY; [0.00019407272338867 sec]
INSERT IGNORE INTO tmp_counts_j48se20n1sjv8u0ouco0od38sl_6a2ab02a9e881 (filter_id, count) SELECT p.filter_id, COUNT(*) AS count FROM tmp_pairs_j48se20n1sjv8u0ouco0od38sl_6a2ab02a9e881 p GROUP BY p.filter_id [0.00018095970153809 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_j48se20n1sjv8u0ouco0od38sl_6a2ab02a9e881 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.00018095970153809 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_A_j48se20n1sjv8u0ouco0od38sl_6a2ab02a9e881 [0.00014305114746094 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_pairs_j48se20n1sjv8u0ouco0od38sl_6a2ab02a9e881 [6.7949295043945E-5 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_counts_j48se20n1sjv8u0ouco0od38sl_6a2ab02a9e881 [6.103515625E-5 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_A_j48se20n1sjv8u0ouco0od38sl_6a2ab02aa2f19; CREATE TEMPORARY TABLE tmp_A_j48se20n1sjv8u0ouco0od38sl_6a2ab02aa2f19 ( id INT NOT NULL, entry INT NOT NULL, PRIMARY KEY (id), KEY idx_entry (entry) ) ENGINE=MEMORY; [0.00017404556274414 sec]
INSERT INTO tmp_A_j48se20n1sjv8u0ouco0od38sl_6a2ab02aa2f19 (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 (265,3466) 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,2610,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 (265,3466) 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,2610,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 (265,3466) 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,2610,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 (265,3466) 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,2610,2615) AND go.is_present AND go.is_active AND g.is_present_all_mods AND g.is_active ) A [0.0039231777191162 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_pairs_j48se20n1sjv8u0ouco0od38sl_6a2ab02aa2f19; CREATE TEMPORARY TABLE tmp_pairs_j48se20n1sjv8u0ouco0od38sl_6a2ab02aa2f19 ( goods_id INT NOT NULL, filter_id INT NOT NULL, PRIMARY KEY (goods_id, filter_id) ) ENGINE=MEMORY; [0.00032210350036621 sec]
INSERT INTO tmp_pairs_j48se20n1sjv8u0ouco0od38sl_6a2ab02aa2f19 (goods_id, filter_id) SELECT DISTINCT A.entry AS goods_id, f.id AS filter_id FROM tmp_A_j48se20n1sjv8u0ouco0od38sl_6a2ab02aa2f19 A INNER JOIN pod_good_filter gf ON A.id = gf.id_good AND gf.filter_id_value NOT IN (265,3466,463,466) 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.00089907646179199 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_counts_j48se20n1sjv8u0ouco0od38sl_6a2ab02aa2f19; CREATE TEMPORARY TABLE tmp_counts_j48se20n1sjv8u0ouco0od38sl_6a2ab02aa2f19 ( filter_id INT NOT NULL PRIMARY KEY, count INT NOT NULL ) ENGINE=MEMORY; [0.00030207633972168 sec]
INSERT IGNORE INTO tmp_counts_j48se20n1sjv8u0ouco0od38sl_6a2ab02aa2f19 (filter_id, count) SELECT p.filter_id, COUNT(*) AS count FROM tmp_pairs_j48se20n1sjv8u0ouco0od38sl_6a2ab02aa2f19 p GROUP BY p.filter_id [0.00041389465332031 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_j48se20n1sjv8u0ouco0od38sl_6a2ab02aa2f19 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.00032901763916016 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_A_j48se20n1sjv8u0ouco0od38sl_6a2ab02aa2f19 [0.00024199485778809 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_pairs_j48se20n1sjv8u0ouco0od38sl_6a2ab02aa2f19 [0.00012397766113281 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_counts_j48se20n1sjv8u0ouco0od38sl_6a2ab02aa2f19 [0.00010299682617188 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_A_j48se20n1sjv8u0ouco0od38sl_6a2ab02aa506d; CREATE TEMPORARY TABLE tmp_A_j48se20n1sjv8u0ouco0od38sl_6a2ab02aa506d ( id INT NOT NULL, entry INT NOT NULL, PRIMARY KEY (id), KEY idx_entry (entry) ) ENGINE=MEMORY [0.00017118453979492 sec]
INSERT INTO tmp_A_j48se20n1sjv8u0ouco0od38sl_6a2ab02aa506d (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) WHERE g.cat_id IN (3297,437,447,446) AND g.brand_id IN (2460,2610,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) WHERE dc.dop_cat_id IN (3297,437,447,446) AND g.brand_id IN (2460,2610,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) WHERE g.cat_id IN (3297,437,447,446) AND g.brand_id IN (2460,2610,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) WHERE dc.dop_cat_id IN (3297,437,447,446) AND g.brand_id IN (2460,2610,2615) AND go.is_present AND go.is_active AND g.is_present_all_mods AND g.is_active ) A [0.0027740001678467 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_pairs_j48se20n1sjv8u0ouco0od38sl_6a2ab02aa506d; CREATE TEMPORARY TABLE tmp_pairs_j48se20n1sjv8u0ouco0od38sl_6a2ab02aa506d ( goods_id INT NOT NULL, filter_id INT NOT NULL, PRIMARY KEY (goods_id, filter_id) ) ENGINE=MEMORY [0.00025820732116699 sec]
INSERT INTO tmp_pairs_j48se20n1sjv8u0ouco0od38sl_6a2ab02aa506d (goods_id, filter_id) SELECT DISTINCT A.entry AS goods_id, f.id AS filter_id FROM tmp_A_j48se20n1sjv8u0ouco0od38sl_6a2ab02aa506d 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.0026791095733643 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_counts_j48se20n1sjv8u0ouco0od38sl_6a2ab02aa506d; CREATE TEMPORARY TABLE tmp_counts_j48se20n1sjv8u0ouco0od38sl_6a2ab02aa506d ( filter_id INT NOT NULL PRIMARY KEY, count INT NOT NULL ) ENGINE=MEMORY [0.00020313262939453 sec]
INSERT INTO tmp_counts_j48se20n1sjv8u0ouco0od38sl_6a2ab02aa506d (filter_id, count) SELECT p.filter_id, COUNT(*) AS count FROM tmp_pairs_j48se20n1sjv8u0ouco0od38sl_6a2ab02aa506d p GROUP BY p.filter_id [0.00022506713867188 sec]
INSERT INTO tmp_counts_j48se20n1sjv8u0ouco0od38sl_6a2ab02aa506d (filter_id, count) SELECT pf.id, 0 FROM pod_filter pf LEFT JOIN tmp_counts_j48se20n1sjv8u0ouco0od38sl_6a2ab02aa506d c ON c.filter_id = pf.id WHERE pf.id in (265,3466) AND c.filter_id IS NULL [0.00021100044250488 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_j48se20n1sjv8u0ouco0od38sl_6a2ab02aa506d 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.00040102005004883 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_A_j48se20n1sjv8u0ouco0od38sl_6a2ab02aa506d [0.00018692016601562 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_pairs_j48se20n1sjv8u0ouco0od38sl_6a2ab02aa506d [7.4148178100586E-5 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_counts_j48se20n1sjv8u0ouco0od38sl_6a2ab02aa506d [7.1048736572266E-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 (3466,265) and f.is_active AND mf.is_active ORDER BY mf.id, f.id [0.00020909309387207 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_A_j48se20n1sjv8u0ouco0od38sl_6a2ab02aa7183; CREATE TEMPORARY TABLE tmp_A_j48se20n1sjv8u0ouco0od38sl_6a2ab02aa7183 ( id INT NOT NULL, PRIMARY KEY (id) ) ENGINE=MEMORY; [0.00028181076049805 sec]
INSERT INTO tmp_A_j48se20n1sjv8u0ouco0od38sl_6a2ab02aa7183 (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 (265,3466) WHERE g.cat_id IN (3297,437,447,446) AND g.brand_id IN (2460,2610,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 (265,3466) WHERE dc.dop_cat_id IN (3297,437,447,446) AND g.brand_id IN (2460,2610,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 (265,3466) WHERE g.cat_id IN (3297,437,447,446) AND g.brand_id IN (2460,2610,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 (265,3466) WHERE dc.dop_cat_id IN (3297,437,447,446) AND g.brand_id IN (2460,2610,2615) AND go.is_present AND go.is_active AND g.is_present_all_mods AND g.is_active ) A [0.0083339214324951 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_pairs_j48se20n1sjv8u0ouco0od38sl_6a2ab02aa7183; CREATE TEMPORARY TABLE tmp_pairs_j48se20n1sjv8u0ouco0od38sl_6a2ab02aa7183 ( goods_id INT NOT NULL, filter_id INT NOT NULL, PRIMARY KEY (goods_id, filter_id) ) ENGINE=MEMORY; [0.00033402442932129 sec]
INSERT INTO tmp_pairs_j48se20n1sjv8u0ouco0od38sl_6a2ab02aa7183 (goods_id, filter_id) SELECT DISTINCT A.id AS goods_id, f.id AS filter_id FROM tmp_A_j48se20n1sjv8u0ouco0od38sl_6a2ab02aa7183 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.001582145690918 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_counts_j48se20n1sjv8u0ouco0od38sl_6a2ab02aa7183; CREATE TEMPORARY TABLE tmp_counts_j48se20n1sjv8u0ouco0od38sl_6a2ab02aa7183 ( filter_id INT NOT NULL PRIMARY KEY, count INT NOT NULL ) ENGINE=MEMORY; [0.00034189224243164 sec]
INSERT INTO tmp_counts_j48se20n1sjv8u0ouco0od38sl_6a2ab02aa7183 (filter_id, count) SELECT p.filter_id, COUNT(*) AS count FROM tmp_pairs_j48se20n1sjv8u0ouco0od38sl_6a2ab02aa7183 p GROUP BY p.filter_id [0.00033187866210938 sec]
INSERT IGNORE INTO tmp_counts_j48se20n1sjv8u0ouco0od38sl_6a2ab02aa7183 (filter_id, count) SELECT pf.id, 0 FROM pod_filter pf LEFT JOIN tmp_counts_j48se20n1sjv8u0ouco0od38sl_6a2ab02aa7183 c ON c.filter_id = pf.id WHERE pf.id in (463,466) AND c.filter_id IS NULL [0.00027203559875488 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_j48se20n1sjv8u0ouco0od38sl_6a2ab02aa7183 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.0003049373626709 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_A_j48se20n1sjv8u0ouco0od38sl_6a2ab02aa7183 [0.00019407272338867 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_pairs_j48se20n1sjv8u0ouco0od38sl_6a2ab02aa7183 [8.0108642578125E-5 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_counts_j48se20n1sjv8u0ouco0od38sl_6a2ab02aa7183 [7.5101852416992E-5 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_A_j48se20n1sjv8u0ouco0od38sl_6a2ab02aaa52f; CREATE TEMPORARY TABLE tmp_A_j48se20n1sjv8u0ouco0od38sl_6a2ab02aaa52f ( entry INT NOT NULL, sub_icon_id INT NOT NULL, PRIMARY KEY (entry, sub_icon_id) ) ENGINE=MEMORY; [0.00015592575073242 sec]
INSERT IGNORE INTO tmp_A_j48se20n1sjv8u0ouco0od38sl_6a2ab02aaa52f (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 (265,3466) 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,2610,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 (265,3466) 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,2610,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 (265,3466) 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,2610,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 (265,3466) 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,2610,2615) AND go.is_present AND go.is_active AND g.is_present_all_mods AND g.is_active ) A [0.001878023147583 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_counts_j48se20n1sjv8u0ouco0od38sl_6a2ab02aaa52f; CREATE TEMPORARY TABLE tmp_counts_j48se20n1sjv8u0ouco0od38sl_6a2ab02aaa52f ( sub_icon_id INT NOT NULL PRIMARY KEY, count INT NOT NULL ) ENGINE=MEMORY; [0.00016379356384277 sec]
INSERT IGNORE INTO tmp_counts_j48se20n1sjv8u0ouco0od38sl_6a2ab02aaa52f (sub_icon_id, count) SELECT sub_icon_id, COUNT(DISTINCT entry) AS count FROM ( SELECT A.entry, A.sub_icon_id FROM tmp_A_j48se20n1sjv8u0ouco0od38sl_6a2ab02aaa52f 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.00022697448730469 sec]
SELECT c.sub_icon_id AS id, c.count, si.entry, si.name AS name, si.url FROM tmp_counts_j48se20n1sjv8u0ouco0od38sl_6a2ab02aaa52f 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.00014305114746094 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_A_j48se20n1sjv8u0ouco0od38sl_6a2ab02aaa52f [0.00011801719665527 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_counts_j48se20n1sjv8u0ouco0od38sl_6a2ab02aaa52f [6.0081481933594E-5 sec]
Низкие цены на Детские конструкторы Xtrem Bots ... Stem (КСтрeм Бoц ... Стeм) – большой выбор, фото. Купить Детские конструкторы Xtrem Bots ... Stem (КСтрeм Бoц ... Стeм) в Киеве и Украине

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

ПЕРЕЙТИ

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