Close
1 x Controller (29.64%) | 10.27ms |
1 x Booting (18.77%) | 6.50ms |
1 x Configs (4.51%) | 1.56ms |
SET NAMES utf8mb4
66μs0SET SESSION sql_mode=''
39μs0SELECT * FROM `i18n_cat` ORDER BY `default_lang` DESC
20μs2SELECT * FROM `configs`
26μs104SELECT * FROM `countries` ORDER BY `en_name`
24μs244SELECT p.id,p.`slug`,p.external_id,p.youtube_url,p.3d_url,p.spec_sheet,p.sku,p.date_update,p.warranty,
p.about,p.description,p.cashback,p.title,d.name AS brand,
d.id AS brand_id,p.sub_of,p.tags,p.stock,p.low_stock,p.cost,p.sub_of,IF(od.s,od.s,0) AS sold,
(r.`value_rating` + r.`quality_rating` + r.`price_rating`) /3 AS avg,
(SELECT `file_url` FROM `products_files`
WHERE `sub_of` = p.`id` and `for_quantity` = 0 AND `main` = 1 ORDER BY RAND() limit 1) as `pic_url`,
(SELECT `file_url` FROM `products_files`
WHERE `sub_of` = p.`id` and `for_quantity` = 0 AND `main` != 1 limit 1) as `file_url`,
q.price AS priceMin,q.price AS commercial_price,q.price_before AS market_price,
pc.name AS category,pc.id AS `category_id` FROM `products` p
LEFT JOIN quantities q ON
( q.sub_of = p.id and q.price = (SELECT MIN(`price`) FROM quantities WHERE `sub_of` = p.id))
LEFT JOIN `products_cat` pc ON pc.id= p.sub_of
LEFT JOIN `brands` d ON p.`brand_id` = d.`id`
LEFT JOIN `reviews` r ON r.`sub_of` = p.`id`
LEFT JOIN (SELECT product_id,IF(SUM(quantity),SUM(quantity),0) AS s
FROM `orders_data`
WHERE `sub_of` IN ( SELECT `id` FROM `orders` WHERE `status` < 4 )
GROUP BY product_id ) od ON od.`product_id` = p.`id`
WHERE p.`status` = 1 AND pc.`status`= 1 AND p.`id`='255'
GROUP BY p.id
LIMIT 0,30
438μs1SELECT
`id`,
`title`,
`description`,
`small_description`,
`variations`,
`sub_of`,
`price`,
`price_before`,
`quantity`
FROM `quantities`
WHERE `sub_of` IN (255)
77μs1SELECT * FROM `attributes`
WHERE `type`='quantity'
108μs5SELECT `sub_of`,`cat_id` FROM `attributes_relations`
18μs90SELECT `sub_of`, `file_url`
FROM `products_files`
WHERE `sub_of` IN (255)
AND `for_quantity` = 1
ORDER BY `main` DESC
14μs3SELECT * FROM `products_cat` WHERE `sub_of` = 0 AND `status` =1 ORDER BY `sort_id` , `id`
18μs5SELECT * FROM `products_cat` WHERE `sub_of`=37 AND `status` =1 ORDER BY `sort_id` , `id`
14μs5SELECT * FROM `products_cat` WHERE `sub_of`=38 AND `status` =1 ORDER BY `sort_id` , `id`
13μs0SELECT * FROM `products_cat` WHERE `sub_of`=39 AND `status` =1 ORDER BY `sort_id` , `id`
15μs0SELECT * FROM `products_cat` WHERE `sub_of`=40 AND `status` =1 ORDER BY `sort_id` , `id`
15μs0SELECT * FROM `products_cat` WHERE `sub_of`=41 AND `status` =1 ORDER BY `sort_id` , `id`
15μs0SELECT * FROM `products_cat` WHERE `sub_of`=42 AND `status` =1 ORDER BY `sort_id` , `id`
16μs0SELECT * FROM `products_cat` WHERE `sub_of`=8 AND `status` =1 ORDER BY `sort_id` , `id`
15μs9SELECT * FROM `products_cat` WHERE `sub_of`=26 AND `status` =1 ORDER BY `sort_id` , `id`
13μs0SELECT * FROM `products_cat` WHERE `sub_of`=53 AND `status` =1 ORDER BY `sort_id` , `id`
15μs0SELECT * FROM `products_cat` WHERE `sub_of`=27 AND `status` =1 ORDER BY `sort_id` , `id`
14μs0SELECT * FROM `products_cat` WHERE `sub_of`=29 AND `status` =1 ORDER BY `sort_id` , `id`
15μs0SELECT * FROM `products_cat` WHERE `sub_of`=30 AND `status` =1 ORDER BY `sort_id` , `id`
15μs0SELECT * FROM `products_cat` WHERE `sub_of`=45 AND `status` =1 ORDER BY `sort_id` , `id`
15μs0SELECT * FROM `products_cat` WHERE `sub_of`=31 AND `status` =1 ORDER BY `sort_id` , `id`
15μs0SELECT * FROM `products_cat` WHERE `sub_of`=28 AND `status` =1 ORDER BY `sort_id` , `id`
15μs0SELECT * FROM `products_cat` WHERE `sub_of`=32 AND `status` =1 ORDER BY `sort_id` , `id`
15μs0SELECT * FROM `products_cat` WHERE `sub_of`=9 AND `status` =1 ORDER BY `sort_id` , `id`
15μs11SELECT * FROM `products_cat` WHERE `sub_of`=20 AND `status` =1 ORDER BY `sort_id` , `id`
12μs0SELECT * FROM `products_cat` WHERE `sub_of`=21 AND `status` =1 ORDER BY `sort_id` , `id`
14μs0SELECT * FROM `products_cat` WHERE `sub_of`=4 AND `status` =1 ORDER BY `sort_id` , `id`
18μs0SELECT * FROM `products_cat` WHERE `sub_of`=43 AND `status` =1 ORDER BY `sort_id` , `id`
15μs0SELECT * FROM `products_cat` WHERE `sub_of`=44 AND `status` =1 ORDER BY `sort_id` , `id`
15μs0SELECT * FROM `products_cat` WHERE `sub_of`=51 AND `status` =1 ORDER BY `sort_id` , `id`
15μs0SELECT * FROM `products_cat` WHERE `sub_of`=23 AND `status` =1 ORDER BY `sort_id` , `id`
15μs0SELECT * FROM `products_cat` WHERE `sub_of`=24 AND `status` =1 ORDER BY `sort_id` , `id`
15μs0SELECT * FROM `products_cat` WHERE `sub_of`=22 AND `status` =1 ORDER BY `sort_id` , `id`
16μs0SELECT * FROM `products_cat` WHERE `sub_of`=49 AND `status` =1 ORDER BY `sort_id` , `id`
15μs0SELECT * FROM `products_cat` WHERE `sub_of`=25 AND `status` =1 ORDER BY `sort_id` , `id`
15μs0SELECT * FROM `products_cat` WHERE `sub_of`=1 AND `status` =1 ORDER BY `sort_id` , `id`
15μs2SELECT * FROM `products_cat` WHERE `sub_of`=17 AND `status` =1 ORDER BY `sort_id` , `id`
14μs8SELECT * FROM `products_cat` WHERE `sub_of`=18 AND `status` =1 ORDER BY `sort_id` , `id`
15μs0SELECT * FROM `products_cat` WHERE `sub_of`=12 AND `status` =1 ORDER BY `sort_id` , `id`
15μs0SELECT * FROM `header_ads` WHERE NOW() BETWEEN`date_start` AND `date_expire` AND `status` = 1 ORDER BY `id` DESC Limit 1
68μs0SELECT * FROM `faq_cat` WHERE `status` =1
15μs2SELECT * FROM `products_cat` WHERE `id`IN (SELECT `sub_of` FROM `products` WHERE `is_new` = 1) LIMIT 8
14μs8SELECT * FROM `pages` WHERE `status` =1 ORDER BY `sort_id`
20μs6INSERT INTO `sessions` ( `admins`,`session`,`last_ip` )VALUES( '0','aeba9ec4d719e01b5296d3b7d70d0621','18.221.190.79' )
10.26ms1SELECT * FROM `carts` WHERE `sub_of` IN (195515)
98μs0SELECT * FROM `products_cat` WHERE `sub_of` = 0 AND `status` =1 ORDER BY `sort_id` , `id`
196μs5SELECT * FROM `products_cat` WHERE `sub_of`=37 AND `status` =1 ORDER BY `sort_id` , `id`
14μs5SELECT * FROM `products_cat` WHERE `sub_of`=38 AND `status` =1 ORDER BY `sort_id` , `id`
15μs0SELECT * FROM `products_cat` WHERE `sub_of`=39 AND `status` =1 ORDER BY `sort_id` , `id`
15μs0SELECT * FROM `products_cat` WHERE `sub_of`=40 AND `status` =1 ORDER BY `sort_id` , `id`
22μs0SELECT * FROM `products_cat` WHERE `sub_of`=41 AND `status` =1 ORDER BY `sort_id` , `id`
16μs0SELECT * FROM `products_cat` WHERE `sub_of`=42 AND `status` =1 ORDER BY `sort_id` , `id`
16μs0SELECT * FROM `products_cat` WHERE `sub_of`=8 AND `status` =1 ORDER BY `sort_id` , `id`
17μs9SELECT * FROM `products_cat` WHERE `sub_of`=26 AND `status` =1 ORDER BY `sort_id` , `id`
13μs0SELECT * FROM `products_cat` WHERE `sub_of`=53 AND `status` =1 ORDER BY `sort_id` , `id`
16μs0SELECT * FROM `products_cat` WHERE `sub_of`=27 AND `status` =1 ORDER BY `sort_id` , `id`
15μs0SELECT * FROM `products_cat` WHERE `sub_of`=29 AND `status` =1 ORDER BY `sort_id` , `id`
16μs0SELECT * FROM `products_cat` WHERE `sub_of`=30 AND `status` =1 ORDER BY `sort_id` , `id`
15μs0SELECT * FROM `products_cat` WHERE `sub_of`=45 AND `status` =1 ORDER BY `sort_id` , `id`
16μs0SELECT * FROM `products_cat` WHERE `sub_of`=31 AND `status` =1 ORDER BY `sort_id` , `id`
16μs0SELECT * FROM `products_cat` WHERE `sub_of`=28 AND `status` =1 ORDER BY `sort_id` , `id`
16μs0SELECT * FROM `products_cat` WHERE `sub_of`=32 AND `status` =1 ORDER BY `sort_id` , `id`
16μs0SELECT * FROM `products_cat` WHERE `sub_of`=9 AND `status` =1 ORDER BY `sort_id` , `id`
17μs11SELECT * FROM `products_cat` WHERE `sub_of`=20 AND `status` =1 ORDER BY `sort_id` , `id`
14μs0SELECT * FROM `products_cat` WHERE `sub_of`=21 AND `status` =1 ORDER BY `sort_id` , `id`
16μs0SELECT * FROM `products_cat` WHERE `sub_of`=4 AND `status` =1 ORDER BY `sort_id` , `id`
15μs0SELECT * FROM `products_cat` WHERE `sub_of`=43 AND `status` =1 ORDER BY `sort_id` , `id`
16μs0SELECT * FROM `products_cat` WHERE `sub_of`=44 AND `status` =1 ORDER BY `sort_id` , `id`
16μs0SELECT * FROM `products_cat` WHERE `sub_of`=51 AND `status` =1 ORDER BY `sort_id` , `id`
15μs0SELECT * FROM `products_cat` WHERE `sub_of`=23 AND `status` =1 ORDER BY `sort_id` , `id`
16μs0SELECT * FROM `products_cat` WHERE `sub_of`=24 AND `status` =1 ORDER BY `sort_id` , `id`
16μs0SELECT * FROM `products_cat` WHERE `sub_of`=22 AND `status` =1 ORDER BY `sort_id` , `id`
15μs0SELECT * FROM `products_cat` WHERE `sub_of`=49 AND `status` =1 ORDER BY `sort_id` , `id`
16μs0SELECT * FROM `products_cat` WHERE `sub_of`=25 AND `status` =1 ORDER BY `sort_id` , `id`
15μs0SELECT * FROM `products_cat` WHERE `sub_of`=1 AND `status` =1 ORDER BY `sort_id` , `id`
15μs2SELECT * FROM `products_cat` WHERE `sub_of`=17 AND `status` =1 ORDER BY `sort_id` , `id`
15μs8SELECT * FROM `products_cat` WHERE `sub_of`=18 AND `status` =1 ORDER BY `sort_id` , `id`
24μs0SELECT * FROM `products_cat` WHERE `sub_of`=12 AND `status` =1 ORDER BY `sort_id` , `id`
16μs0SELECT * FROM `faq_cat` WHERE `status` =1
16μs2SELECT * FROM `pages` WHERE `status` =1 ORDER BY `sort_id`
21μs6SELECT p.id,p.`slug`,p.external_id,p.youtube_url,p.3d_url,p.spec_sheet,p.sku,p.date_update,p.warranty,
p.about,p.description,p.cashback,p.title,d.name AS brand,
d.id AS brand_id,p.sub_of,p.tags,p.stock,p.low_stock,p.cost,p.sub_of,IF(od.s,od.s,0) AS sold,
(r.`value_rating` + r.`quality_rating` + r.`price_rating`) /3 AS avg,
(SELECT `file_url` FROM `products_files`
WHERE `sub_of` = p.`id` and `for_quantity` = 0 AND `main` = 1 ORDER BY RAND() limit 1) as `pic_url`,
(SELECT `file_url` FROM `products_files`
WHERE `sub_of` = p.`id` and `for_quantity` = 0 AND `main` != 1 limit 1) as `file_url`,
q.price AS priceMin,q.price AS commercial_price,q.price_before AS market_price,
pc.name AS category,pc.id AS `category_id` FROM `products` p
LEFT JOIN quantities q ON
( q.sub_of = p.id and q.price = (SELECT MIN(`price`) FROM quantities WHERE `sub_of` = p.id))
LEFT JOIN `products_cat` pc ON pc.id= p.sub_of
LEFT JOIN `brands` d ON p.`brand_id` = d.`id`
LEFT JOIN `reviews` r ON r.`sub_of` = p.`id`
LEFT JOIN (SELECT product_id,IF(SUM(quantity),SUM(quantity),0) AS s
FROM `orders_data`
WHERE `sub_of` IN ( SELECT `id` FROM `orders` WHERE `status` < 4 )
GROUP BY product_id ) od ON od.`product_id` = p.`id`
WHERE p.`status` = 1 AND pc.`status`= 1 AND p.`id`='255'
GROUP BY p.id
LIMIT 0,30
318μs1SELECT
`id`,
`title`,
`description`,
`small_description`,
`variations`,
`sub_of`,
`price`,
`price_before`,
`quantity`
FROM `quantities`
WHERE `sub_of` IN (255)
20μs1SELECT * FROM `attributes`
WHERE `type`='quantity'
17μs5SELECT `sub_of`,`cat_id` FROM `attributes_relations`
15μs90SELECT `sub_of`, `file_url`
FROM `products_files`
WHERE `sub_of` IN (255)
AND `for_quantity` = 1
ORDER BY `main` DESC
14μs3SELECT `file_url` FROM `products_files` WHERE `for_quantity` = 0 AND `sub_of` ='255' ORDER BY `main` DESC
73μs0SELECT p.id,p.`slug`,p.external_id,p.youtube_url,p.3d_url,p.spec_sheet,p.sku,p.date_update,p.warranty,
p.about,p.description,p.cashback,p.title,d.name AS brand,
d.id AS brand_id,p.sub_of,p.tags,p.stock,p.low_stock,p.cost,p.sub_of,IF(od.s,od.s,0) AS sold,
(r.`value_rating` + r.`quality_rating` + r.`price_rating`) /3 AS avg,
(SELECT `file_url` FROM `products_files`
WHERE `sub_of` = p.`id` and `for_quantity` = 0 AND `main` = 1 ORDER BY RAND() limit 1) as `pic_url`,
(SELECT `file_url` FROM `products_files`
WHERE `sub_of` = p.`id` and `for_quantity` = 0 AND `main` != 1 limit 1) as `file_url`,
q.price AS priceMin,q.price AS commercial_price,q.price_before AS market_price,
pc.name AS category,pc.id AS `category_id` FROM `products` p
LEFT JOIN quantities q ON
( q.sub_of = p.id and q.price = (SELECT MIN(`price`) FROM quantities WHERE `sub_of` = p.id))
LEFT JOIN `products_cat` pc ON pc.id= p.sub_of
LEFT JOIN `brands` d ON p.`brand_id` = d.`id`
LEFT JOIN `reviews` r ON r.`sub_of` = p.`id`
LEFT JOIN (SELECT product_id,IF(SUM(quantity),SUM(quantity),0) AS s
FROM `orders_data`
WHERE `sub_of` IN ( SELECT `id` FROM `orders` WHERE `status` < 4 )
GROUP BY product_id ) od ON od.`product_id` = p.`id`
WHERE p.`status` = 1 AND pc.`status`= 1 AND p.`sub_of`=1
GROUP BY p.id ORDER BY 5
LIMIT 0,30
7.04ms30SELECT
`id`,
`title`,
`description`,
`small_description`,
`variations`,
`sub_of`,
`price`,
`price_before`,
`quantity`
FROM `quantities`
WHERE `sub_of` IN (2,6,12,23,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50)
158μs30SELECT * FROM `attributes`
WHERE `type`='quantity'
18μs5SELECT `sub_of`,`cat_id` FROM `attributes_relations`
16μs90SELECT `sub_of`, `file_url`
FROM `products_files`
WHERE `sub_of` IN (2,6,12,23,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50)
AND `for_quantity` = 1
ORDER BY `main` DESC
18μs89SELECT * FROM `attributes_products` p LEFT JOIN `attributes` a ON a.`id`=p.`sub_of`
WHERE p.`product_id`= 255 ORDER BY a.`sort_id`
1.56ms0SELECT
( SELECT `id` FROM `products` WHERE `id` >255 LIMIT 1 ) AS next_value,
( SELECT `id` FROM `products` WHERE `id` <255 ORDER BY `id` DESC LIMIT 1 ) AS prev_value
FROM `products` Limit 1
144μs1SELECT c.`name`,c.`id`,c.`sub_of` FROM `products` p
LEFT JOIN `products_cat` c ON p.`sub_of` = c.`id`
WHERE p.`id` =255 AND c.`status` = 1 Limit 1
97μs1SELECT `name`,`id`,`sub_of` FROM `products_cat`
WHERE `id` =0 AND `status` = 1 Limit 1
33μs0SELECT * FROM `quantities` WHERE `sub_of` =255
55μs1SELECT * FROM `attributes`
WHERE `type`='quantity' ORDER BY `sort_id`
41μs5SELECT * FROM `reviews`
WHERE `status`=1 AND `sub_of`=255
50μs0