SELECT url_to, r404
FROM pod_redirect
WHERE BINARY REPLACE(url_from,'/ru/','/') = '/konstruktor_dlya_devochek/o_13-developing-wader.html' LIMIT 0,1 [0.00089383125305176 sec]
SELECT pod_filter.id,pod_filter.url FROM pod_filter WHERE BINARY pod_filter.url IN ('o_13','developing','wader') order by url [0.00070714950561523 sec]
SELECT pod_sub_icon.id,pod_sub_icon.url FROM pod_sub_icon WHERE BINARY pod_sub_icon.url IN ('o_13','developing','wader') order by url [0.00050997734069824 sec]
select id,url from pod_cat_brand where BINARY url IN ('o_13','developing','wader') [0.00092816352844238 sec]
SELECT id, url FROM pod_filter WHERE url IN ('o_13','developing','wader') [0.00036191940307617 sec]
SELECT id, url FROM pod_sub_icon WHERE url IN ('o_13','developing','wader') [0.00027084350585938 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 (379)
INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (463)
WHERE g.cat_id IN (447) AND
g.brand_id IN (1178) 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 (379)
INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (463)
WHERE dc.dop_cat_id IN (447) AND
g.brand_id IN (1178) 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 (379)
INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (463)
WHERE g.cat_id IN (447) AND
g.brand_id IN (1178) 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 (379)
INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (463)
WHERE dc.dop_cat_id IN (447) AND
g.brand_id IN (1178) AND
go.is_present AND go.is_active AND g.is_present_all_mods AND g.is_active
[0.022683143615723 sec]
CREATE TEMPORARY TABLE temp_brand_counts_6a2a9fb214ce1 (
id INT,
gid INT,
INDEX idx_id (id),
INDEX idx_gid (gid)
) [0.0016331672668457 sec]
INSERT INTO temp_brand_counts_6a2a9fb214ce1 (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 (379)
INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (463)
WHERE g.cat_id IN (447) 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 (379)
INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (463)
WHERE dc.dop_cat_id IN (447) 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 (379)
INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (463)
WHERE g.cat_id IN (447) 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 (379)
INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (463)
WHERE dc.dop_cat_id IN (447) 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 (1178) [0.028892040252686 sec]
SELECT b.id, b.name_ua AS name, pc.name_ua 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_6a2a9fb214ce1
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.00045490264892578 sec]
DROP TEMPORARY TABLE IF EXISTS temp_brand_counts_6a2a9fb214ce1 [0.00013303756713867 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 (379)
INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (463)
WHERE g.cat_id IN (447) AND
g.brand_id IN (1178) 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 (379)
INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (463)
WHERE dc.dop_cat_id IN (447) AND
g.brand_id IN (1178) 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 (379)
INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (463)
WHERE g.cat_id IN (447) AND
g.brand_id IN (1178) 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 (379)
INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (463)
WHERE dc.dop_cat_id IN (447) AND
g.brand_id IN (1178) AND
go.is_present AND go.is_active AND g.is_present_all_mods AND g.is_active
) A
[0.0035998821258545 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 -- основні
FROM pod_cat_good g
INNER JOIN pod_good_filter gf0 ON g.id = gf0.id_good AND gf0.filter_id_value in (379)
INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (463)
WHERE g.cat_id IN (447) AND
g.brand_id IN (1178) 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 (379)
INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (463)
WHERE dc.dop_cat_id IN (447) AND
g.brand_id IN (1178) 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 (379)
INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (463)
WHERE g.cat_id IN (447) AND
g.brand_id IN (1178) 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 (379)
INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (463)
WHERE dc.dop_cat_id IN (447) AND
g.brand_id IN (1178) AND
go.is_present AND go.is_active AND g.is_present_all_mods AND g.is_active
) 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.0042321681976318 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_A_a977t1oo6h12g31ijncaku9f44_6a2a9fb21fdbf;
CREATE TEMPORARY TABLE tmp_A_a977t1oo6h12g31ijncaku9f44_6a2a9fb21fdbf (
id INT NOT NULL,
PRIMARY KEY (id)
) ENGINE=MEMORY; [0.00027203559875488 sec]
INSERT INTO tmp_A_a977t1oo6h12g31ijncaku9f44_6a2a9fb21fdbf (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 (379)
INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (463)
WHERE g.cat_id IN (447) AND
g.brand_id IN (1178) 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 (379)
INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (463)
WHERE dc.dop_cat_id IN (447) AND
g.brand_id IN (1178) 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 (379)
INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (463)
WHERE g.cat_id IN (447) AND
g.brand_id IN (1178) 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 (379)
INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (463)
WHERE dc.dop_cat_id IN (447) AND
g.brand_id IN (1178) AND
go.is_present AND go.is_active AND g.is_present_all_mods AND g.is_active
) A [0.0020592212677002 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_pairs_a977t1oo6h12g31ijncaku9f44_6a2a9fb21fdbf;
CREATE TEMPORARY TABLE tmp_pairs_a977t1oo6h12g31ijncaku9f44_6a2a9fb21fdbf (
goods_id INT NOT NULL,
filter_id INT NOT NULL,
PRIMARY KEY (goods_id, filter_id)
) ENGINE=MEMORY; [0.00015687942504883 sec]
INSERT INTO tmp_pairs_a977t1oo6h12g31ijncaku9f44_6a2a9fb21fdbf (goods_id, filter_id)
SELECT DISTINCT
A.id AS goods_id,
f.id AS filter_id
FROM tmp_A_a977t1oo6h12g31ijncaku9f44_6a2a9fb21fdbf A
INNER JOIN pod_good_filter gf ON A.id = gf.id_good AND gf.filter_id_value NOT IN (379,463)
INNER JOIN pod_cat_filter cf ON gf.filter_id = cf.filter_id AND cf.category_id = 447
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.0060939788818359 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_counts_a977t1oo6h12g31ijncaku9f44_6a2a9fb21fdbf;
CREATE TEMPORARY TABLE tmp_counts_a977t1oo6h12g31ijncaku9f44_6a2a9fb21fdbf (
filter_id INT NOT NULL PRIMARY KEY,
count INT NOT NULL
) ENGINE=MEMORY; [0.00019121170043945 sec]
INSERT IGNORE INTO tmp_counts_a977t1oo6h12g31ijncaku9f44_6a2a9fb21fdbf (filter_id, count)
SELECT
p.filter_id,
COUNT(*) AS count
FROM tmp_pairs_a977t1oo6h12g31ijncaku9f44_6a2a9fb21fdbf p
GROUP BY p.filter_id [0.0001680850982666 sec]
SELECT
c.filter_id,
c.count,
f.entry,
f.name_ua AS name,
f.url,
f.ord,
fm.name_ua AS mname,
fm.url AS murl,
fm.ord AS mord
FROM tmp_counts_a977t1oo6h12g31ijncaku9f44_6a2a9fb21fdbf 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.00016188621520996 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_A_a977t1oo6h12g31ijncaku9f44_6a2a9fb21fdbf [0.00013399124145508 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_pairs_a977t1oo6h12g31ijncaku9f44_6a2a9fb21fdbf [5.6028366088867E-5 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_counts_a977t1oo6h12g31ijncaku9f44_6a2a9fb21fdbf [5.1975250244141E-5 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_A_a977t1oo6h12g31ijncaku9f44_6a2a9fb2224eb;
CREATE TEMPORARY TABLE tmp_A_a977t1oo6h12g31ijncaku9f44_6a2a9fb2224eb (
id INT NOT NULL,
entry INT NOT NULL,
PRIMARY KEY (id),
KEY idx_entry (entry)
) ENGINE=MEMORY; [0.00012779235839844 sec]
INSERT INTO tmp_A_a977t1oo6h12g31ijncaku9f44_6a2a9fb2224eb (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 (379)
INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (463)
WHERE g.cat_id IN (447) AND
g.brand_id IN (1178) 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 (379)
INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (463)
WHERE dc.dop_cat_id IN (447) AND
g.brand_id IN (1178) 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 (379)
INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (463)
WHERE g.cat_id IN (447) AND
g.brand_id IN (1178) 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 (379)
INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (463)
WHERE dc.dop_cat_id IN (447) AND
g.brand_id IN (1178) AND
go.is_present AND go.is_active AND g.is_present_all_mods AND g.is_active
) A [0.010386943817139 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_pairs_a977t1oo6h12g31ijncaku9f44_6a2a9fb2224eb;
CREATE TEMPORARY TABLE tmp_pairs_a977t1oo6h12g31ijncaku9f44_6a2a9fb2224eb (
goods_id INT NOT NULL,
filter_id INT NOT NULL,
PRIMARY KEY (goods_id, filter_id)
) ENGINE=MEMORY; [0.00025296211242676 sec]
INSERT INTO tmp_pairs_a977t1oo6h12g31ijncaku9f44_6a2a9fb2224eb (goods_id, filter_id)
SELECT DISTINCT
A.entry AS goods_id,
f.id AS filter_id
FROM tmp_A_a977t1oo6h12g31ijncaku9f44_6a2a9fb2224eb A
INNER JOIN pod_good_filter gf ON A.id = gf.id_good AND gf.filter_id_value NOT IN (379,463)
INNER JOIN pod_cat_filter cf ON gf.filter_id = cf.filter_id AND cf.category_id = 447
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.00040102005004883 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_counts_a977t1oo6h12g31ijncaku9f44_6a2a9fb2224eb;
CREATE TEMPORARY TABLE tmp_counts_a977t1oo6h12g31ijncaku9f44_6a2a9fb2224eb (
filter_id INT NOT NULL PRIMARY KEY,
count INT NOT NULL
) ENGINE=MEMORY; [0.00018501281738281 sec]
INSERT IGNORE INTO tmp_counts_a977t1oo6h12g31ijncaku9f44_6a2a9fb2224eb (filter_id, count)
SELECT
p.filter_id,
COUNT(*) AS count
FROM tmp_pairs_a977t1oo6h12g31ijncaku9f44_6a2a9fb2224eb p
GROUP BY p.filter_id [0.00013613700866699 sec]
SELECT
c.filter_id,
c.count,
f.entry,
f.name_ua AS name,
f.url,
f.ord,
fm.name_ua AS mname,
fm.url AS murl,
fm.ord AS mord
FROM tmp_counts_a977t1oo6h12g31ijncaku9f44_6a2a9fb2224eb 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.00016117095947266 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_A_a977t1oo6h12g31ijncaku9f44_6a2a9fb2224eb [0.00015807151794434 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_pairs_a977t1oo6h12g31ijncaku9f44_6a2a9fb2224eb [9.0122222900391E-5 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_counts_a977t1oo6h12g31ijncaku9f44_6a2a9fb2224eb [6.4849853515625E-5 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_A_a977t1oo6h12g31ijncaku9f44_6a2a9fb2257c6;
CREATE TEMPORARY TABLE tmp_A_a977t1oo6h12g31ijncaku9f44_6a2a9fb2257c6 (
id INT NOT NULL,
entry INT NOT NULL,
PRIMARY KEY (id),
KEY idx_entry (entry)
) ENGINE=MEMORY [0.00016307830810547 sec]
INSERT INTO tmp_A_a977t1oo6h12g31ijncaku9f44_6a2a9fb2257c6 (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)
WHERE g.cat_id IN (447) AND
g.brand_id IN (1178) 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)
WHERE dc.dop_cat_id IN (447) AND
g.brand_id IN (1178) 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)
WHERE g.cat_id IN (447) AND
g.brand_id IN (1178) 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)
WHERE dc.dop_cat_id IN (447) AND
g.brand_id IN (1178) AND
go.is_present AND go.is_active AND g.is_present_all_mods AND g.is_active
) A [0.0022649765014648 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_pairs_a977t1oo6h12g31ijncaku9f44_6a2a9fb2257c6;
CREATE TEMPORARY TABLE tmp_pairs_a977t1oo6h12g31ijncaku9f44_6a2a9fb2257c6 (
goods_id INT NOT NULL,
filter_id INT NOT NULL,
PRIMARY KEY (goods_id, filter_id)
) ENGINE=MEMORY [0.00020289421081543 sec]
INSERT INTO tmp_pairs_a977t1oo6h12g31ijncaku9f44_6a2a9fb2257c6 (goods_id, filter_id)
SELECT DISTINCT
A.entry AS goods_id,
f.id AS filter_id
FROM tmp_A_a977t1oo6h12g31ijncaku9f44_6a2a9fb2257c6 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.0057480335235596 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_counts_a977t1oo6h12g31ijncaku9f44_6a2a9fb2257c6;
CREATE TEMPORARY TABLE tmp_counts_a977t1oo6h12g31ijncaku9f44_6a2a9fb2257c6 (
filter_id INT NOT NULL PRIMARY KEY,
count INT NOT NULL
) ENGINE=MEMORY [0.00019192695617676 sec]
INSERT INTO tmp_counts_a977t1oo6h12g31ijncaku9f44_6a2a9fb2257c6 (filter_id, count)
SELECT
p.filter_id,
COUNT(*) AS count
FROM tmp_pairs_a977t1oo6h12g31ijncaku9f44_6a2a9fb2257c6 p
GROUP BY p.filter_id [0.00019097328186035 sec]
INSERT INTO tmp_counts_a977t1oo6h12g31ijncaku9f44_6a2a9fb2257c6 (filter_id, count)
SELECT pf.id, 0
FROM pod_filter pf
LEFT JOIN tmp_counts_a977t1oo6h12g31ijncaku9f44_6a2a9fb2257c6 c ON c.filter_id = pf.id
WHERE pf.id in (379) AND c.filter_id IS NULL [0.00012993812561035 sec]
SELECT
c.filter_id,
c.count,
f.entry,
f.name_ua AS name,
f.url,
f.ord,
fm.name_ua AS mname,
fm.url AS murl,
fm.ord AS mord
FROM tmp_counts_a977t1oo6h12g31ijncaku9f44_6a2a9fb2257c6 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.00017309188842773 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_A_a977t1oo6h12g31ijncaku9f44_6a2a9fb2257c6 [0.00017690658569336 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_pairs_a977t1oo6h12g31ijncaku9f44_6a2a9fb2257c6 [7.0810317993164E-5 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_counts_a977t1oo6h12g31ijncaku9f44_6a2a9fb2257c6 [6.103515625E-5 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_A_a977t1oo6h12g31ijncaku9f44_6a2a9fb228121;
CREATE TEMPORARY TABLE tmp_A_a977t1oo6h12g31ijncaku9f44_6a2a9fb228121 (
id INT NOT NULL,
PRIMARY KEY (id)
) ENGINE=MEMORY; [0.00013899803161621 sec]
INSERT INTO tmp_A_a977t1oo6h12g31ijncaku9f44_6a2a9fb228121 (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 (379)
WHERE g.cat_id IN (447) AND
g.brand_id IN (1178) 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 (379)
WHERE dc.dop_cat_id IN (447) AND
g.brand_id IN (1178) 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 (379)
WHERE g.cat_id IN (447) AND
g.brand_id IN (1178) 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 (379)
WHERE dc.dop_cat_id IN (447) AND
g.brand_id IN (1178) AND
go.is_present AND go.is_active AND g.is_present_all_mods AND g.is_active
) A [0.004141092300415 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_pairs_a977t1oo6h12g31ijncaku9f44_6a2a9fb228121;
CREATE TEMPORARY TABLE tmp_pairs_a977t1oo6h12g31ijncaku9f44_6a2a9fb228121 (
goods_id INT NOT NULL,
filter_id INT NOT NULL,
PRIMARY KEY (goods_id, filter_id)
) ENGINE=MEMORY; [0.00018715858459473 sec]
INSERT INTO tmp_pairs_a977t1oo6h12g31ijncaku9f44_6a2a9fb228121 (goods_id, filter_id)
SELECT DISTINCT
A.id AS goods_id,
f.id AS filter_id
FROM tmp_A_a977t1oo6h12g31ijncaku9f44_6a2a9fb228121 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.0021071434020996 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_counts_a977t1oo6h12g31ijncaku9f44_6a2a9fb228121;
CREATE TEMPORARY TABLE tmp_counts_a977t1oo6h12g31ijncaku9f44_6a2a9fb228121 (
filter_id INT NOT NULL PRIMARY KEY,
count INT NOT NULL
) ENGINE=MEMORY; [0.00017309188842773 sec]
INSERT INTO tmp_counts_a977t1oo6h12g31ijncaku9f44_6a2a9fb228121 (filter_id, count)
SELECT
p.filter_id,
COUNT(*) AS count
FROM tmp_pairs_a977t1oo6h12g31ijncaku9f44_6a2a9fb228121 p
GROUP BY p.filter_id [0.00014495849609375 sec]
INSERT IGNORE INTO tmp_counts_a977t1oo6h12g31ijncaku9f44_6a2a9fb228121 (filter_id, count)
SELECT pf.id, 0
FROM pod_filter pf
LEFT JOIN tmp_counts_a977t1oo6h12g31ijncaku9f44_6a2a9fb228121 c ON c.filter_id = pf.id
WHERE pf.id in (463) AND c.filter_id IS NULL [0.00014805793762207 sec]
SELECT
c.filter_id,
c.count,
f.entry,
f.name_ua AS name,
f.url,
f.ord,
fm.name_ua AS mname,
fm.url AS murl,
fm.ord AS mord
FROM tmp_counts_a977t1oo6h12g31ijncaku9f44_6a2a9fb228121 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.00015091896057129 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_A_a977t1oo6h12g31ijncaku9f44_6a2a9fb228121 [0.00015902519226074 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_pairs_a977t1oo6h12g31ijncaku9f44_6a2a9fb228121 [5.8889389038086E-5 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_counts_a977t1oo6h12g31ijncaku9f44_6a2a9fb228121 [6.5088272094727E-5 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_A_a977t1oo6h12g31ijncaku9f44_6a2a9fb22a194;
CREATE TEMPORARY TABLE tmp_A_a977t1oo6h12g31ijncaku9f44_6a2a9fb22a194 (
entry INT NOT NULL,
sub_icon_id INT NOT NULL,
PRIMARY KEY (entry, sub_icon_id)
) ENGINE=MEMORY; [0.00014901161193848 sec]
INSERT IGNORE INTO tmp_A_a977t1oo6h12g31ijncaku9f44_6a2a9fb22a194 (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 (379)
INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (463)
WHERE g.cat_id IN (447) AND
g.brand_id IN (1178) 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 (379)
INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (463)
WHERE dc.dop_cat_id IN (447) AND
g.brand_id IN (1178) 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 (379)
INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (463)
WHERE g.cat_id IN (447) AND
g.brand_id IN (1178) 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 (379)
INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (463)
WHERE dc.dop_cat_id IN (447) AND
g.brand_id IN (1178) AND
go.is_present AND go.is_active AND g.is_present_all_mods AND g.is_active
) A [0.0017590522766113 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_counts_a977t1oo6h12g31ijncaku9f44_6a2a9fb22a194;
CREATE TEMPORARY TABLE tmp_counts_a977t1oo6h12g31ijncaku9f44_6a2a9fb22a194 (
sub_icon_id INT NOT NULL PRIMARY KEY,
count INT NOT NULL
) ENGINE=MEMORY; [0.00024890899658203 sec]
INSERT IGNORE INTO tmp_counts_a977t1oo6h12g31ijncaku9f44_6a2a9fb22a194 (sub_icon_id, count)
SELECT
sub_icon_id,
COUNT(DISTINCT entry) AS count
FROM (
SELECT A.entry, A.sub_icon_id
FROM tmp_A_a977t1oo6h12g31ijncaku9f44_6a2a9fb22a194 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.00020384788513184 sec]
SELECT
c.sub_icon_id AS id,
c.count,
si.entry,
si.name_ua AS name,
si.url
FROM tmp_counts_a977t1oo6h12g31ijncaku9f44_6a2a9fb22a194 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.00015091896057129 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_A_a977t1oo6h12g31ijncaku9f44_6a2a9fb22a194 [0.00017786026000977 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_counts_a977t1oo6h12g31ijncaku9f44_6a2a9fb22a194 [7.0095062255859E-5 sec]
Низькі ціни на Конструктор для дівчаток Wader (Вaдeр) - великий вибір, фото. Купити Конструктор для дівчаток Wader (Вaдeр) в Києві і Україні
Ваше замовлення оформлено! На e-mail відправлено лист з підтвердженням Найближчим часом з Вами зв'яжеться менеджер Дякємо за замовлення!
Ваш профіль буде видалений назавжди. Його не можна відновити. Продовжити?
Залиште свій номер телефону і наші менеджери Вам зателефонують
Оплату картами Visa і MasterCard забезпечує сервіс онлайн-платежів Portmone.com. Безпека оплати підтверджена міжнародним аудитом PCI DSS. Служба підтримки: тел. +380 (44) 2000902