基本
文件
流程
慢流程
错误
SQL
慢sql
重复sql
调试
- 请求信息 : 2026-04-18 17:52:40 HTTP/1.1 GET : ellademo.saascdn.co/category
- 运行时间 : 0.277579s [ 吞吐率:3.60req/s ] 内存消耗:22,121.63kb 文件加载:323
- 查询信息 : [耗时:0.062662s/0.277579 22.57% ] 48 queries ,1 writes
- 缓存信息 : 25 reads,1 writes
- 配置加载 : 84
- 会话信息 : SESSION_ID=j4cilubnte5s2igcdfodesc4qg
- [ BEHAVIOR ] Run Closure @app_init [ RunTime:0.000013s ]
- [ CACHE ] INIT app\common\library\cache\driver\Redis
- [ BEHAVIOR ] Run \addons\aws\Aws @app_init [ RunTime:0.000287s ]
- [ BEHAVIOR ] Run \addons\listener\Listener @app_init [ RunTime:0.000039s ]
- [ BEHAVIOR ] Run Closure @app_init [ RunTime:0.000049s ]
- [ BEHAVIOR ] Run app\common\behavior\Common @app_dispatch [ RunTime:0.000054s ]
- [ ROUTE ] array (
'type' => 'module',
'module' =>
array (
0 => 'index',
1 => 'category',
2 => 'index',
),
'convert' => false,
)
- [ HEADER ] array (
'x-forwarded-proto' => 'https',
'x-forwarded-host' => 'ellademo.saascdn.co',
'x-forwarded-for' => '216.73.216.148',
'cookie' => 'currency_code=USD; currency=%7B%22id%22%3A1%2C%22title%22%3A%22%E7%BE%8E%E5%85%83%EF%BC%88USD%EF%BC%89%22%2C%22code%22%3A%22USD%22%2C%22symbol_left%22%3A%22%24%22%2C%22symbol_right%22%3Anull%2C%22decimal_place%22%3A%222%22%2C%22value%22%3A%221.0000%22%2C%22status%22%3A1%2C%22icon%22%3A%22assets%5C%2Fshop%5C%2Fflag-icons%5C%2Fflags%5C%2F4x3%5C%2Fus.svg%22%2C%22updatetime%22%3A1702968337%2C%22is_default%22%3A1%2C%22sort%22%3A200%7D; PHPSESSID=j4cilubnte5s2igcdfodesc4qg',
'accept-encoding' => 'gzip, br, zstd, deflate',
'accept' => '*/*',
'user-agent' => 'Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)',
'host' => 'ellademo.saascdn.co',
'content-length' => '',
'content-type' => '',
)
- [ PARAM ] array (
)
- [ LANG ] /wwwroot/public/../application/index/lang/en-us.php
- [ BEHAVIOR ] Run app\common\behavior\Common @module_init [ RunTime:0.005734s ]
- [ BEHAVIOR ] Run \addons\aws\Aws @module_init [ RunTime:0.000033s ]
- [ DB ] INIT mysql
- [ BEHAVIOR ] Run \addons\aws\Aws @upload_config_init [ RunTime:0.000035s ]
- [ BEHAVIOR ] Run \addons\nkeditor\Nkeditor @config_init [ RunTime:0.000072s ]
- [ SESSION ] INIT array (
'id' => '',
'var_session_id' => '',
'session_name' => 'shoppaas_1716192756317:',
'type' => 'redis',
'host' => 'master.redis-test8.evt7pw.use1.cache.amazonaws.com',
'port' => '6379',
'password' => '',
'select' => 6,
'auto_start' => true,
)
- [ RUN ] app\index\controller\Category->index[ /wwwroot/application/index/controller/Category.php ]
- [ VIEW ] /wwwroot/template/ella/template/category_index.html [ array (
0 => 'controller_name',
1 => 'action_name',
2 => 'lang_count',
3 => 'lang_array',
4 => 'theme_key',
5 => 'theme_id',
6 => 'theme_name',
7 => 'hook_rute',
8 => 'theme_arr',
9 => 'template_name',
10 => 'payment_icons',
11 => 'payment',
12 => 'theme',
13 => 'global_css',
14 => 'theme_diy_mode',
15 => 'theme_config',
16 => 'icon_image',
17 => 'head_code',
18 => 'end_code',
19 => 'controllername',
20 => 'actionname',
21 => 'user',
22 => 'language',
23 => 'lang',
24 => 'is_rtl_lang',
25 => 'site',
26 => 'config',
27 => 'currency_switch',
28 => 'currency_list',
29 => 'currency_site',
30 => 'currency',
31 => 'cart',
32 => 'subscribing',
33 => 'login',
34 => 'policies',
35 => 'is_mobile',
36 => 'not_show_login',
37 => 'customer_login_status',
38 => 'config_site_version',
39 => 'categoryList',
40 => 'categorySelected',
41 => 'seotitle',
42 => 'page_type',
) ]
- [ BEHAVIOR ] Run addons\pixel\Hook @pixels [ RunTime:0.000088s ]
- [ BEHAVIOR ] Run addons\facebookpixel\Hook @pixels [ RunTime:0.002451s ]
- [ VIEW ] /wwwroot/addons/snapchatpixel/view/snapchat_pixel.html [ array (
0 => 'snapchat_pixel_id',
) ]
- [ BEHAVIOR ] Run addons\snapchatpixel\Hook @pixels [ RunTime:0.002723s ]
- [ BEHAVIOR ] Run addons\googlepixel\Hook @pixels [ RunTime:0.002372s ]
- [ BEHAVIOR ] Run addons\tiktokpixel\Hook @pixels [ RunTime:0.002359s ]
- [ BEHAVIOR ] Run addons\mediago\Hook @pixels [ RunTime:0.002395s ]
- [ BEHAVIOR ] Run addons\taboolapixel\Hook @pixels [ RunTime:0.002337s ]
- [ BEHAVIOR ] Run addons\klaviyopixel\Hook @pixels [ RunTime:0.001392s ]
- [ BEHAVIOR ] Run addons\aiservices\Hook @pixels [ RunTime:0.001156s ]
- [ BEHAVIOR ] Run addons\featuredproduct\Hook @global_content_bottom [ RunTime:0.001085s ]
- [ BEHAVIOR ] Run addons\marketingnotify\Hook @global_footer [ RunTime:0.000060s ]
- [ BEHAVIOR ] Run addons\marketingcookie\Hook @global_footer [ RunTime:0.002397s ]
- [ BEHAVIOR ] Run addons\marketingpopup\Hook @global_footer [ RunTime:0.000047s ]
- 1/22 . [ BEHAVIOR ] Run app\common\behavior\Common @module_init [ RunTime:0.005734s ] [0.005734s/0.027178s=21.10%]
- 2/22 . [ BEHAVIOR ] Run addons\snapchatpixel\Hook @pixels [ RunTime:0.002723s ] [0.002723s/0.027178s=10.02%]
- 3/22 . [ BEHAVIOR ] Run addons\facebookpixel\Hook @pixels [ RunTime:0.002451s ] [0.002451s/0.027178s=9.02%]
- 4/22 . [ BEHAVIOR ] Run addons\marketingcookie\Hook @global_footer [ RunTime:0.002397s ] [0.002397s/0.027178s=8.82%]
- 5/22 . [ BEHAVIOR ] Run addons\mediago\Hook @pixels [ RunTime:0.002395s ] [0.002395s/0.027178s=8.81%]
- 6/22 . [ BEHAVIOR ] Run addons\googlepixel\Hook @pixels [ RunTime:0.002372s ] [0.002372s/0.027178s=8.73%]
- 7/22 . [ BEHAVIOR ] Run addons\tiktokpixel\Hook @pixels [ RunTime:0.002359s ] [0.002359s/0.027178s=8.68%]
- 8/22 . [ BEHAVIOR ] Run addons\taboolapixel\Hook @pixels [ RunTime:0.002337s ] [0.002337s/0.027178s=8.60%]
- 9/22 . [ BEHAVIOR ] Run addons\klaviyopixel\Hook @pixels [ RunTime:0.001392s ] [0.001392s/0.027178s=5.12%]
- 10/22 . [ BEHAVIOR ] Run addons\aiservices\Hook @pixels [ RunTime:0.001156s ] [0.001156s/0.027178s=4.25%]
- 11/22 . [ BEHAVIOR ] Run addons\featuredproduct\Hook @global_content_bottom [ RunTime:0.001085s ] [0.001085s/0.027178s=3.99%]
- 12/22 . [ BEHAVIOR ] Run \addons\aws\Aws @app_init [ RunTime:0.000287s ] [0.000287s/0.027178s=1.06%]
- 13/22 . [ BEHAVIOR ] Run addons\pixel\Hook @pixels [ RunTime:0.000088s ] [0.000088s/0.027178s=0.32%]
- 14/22 . [ BEHAVIOR ] Run \addons\nkeditor\Nkeditor @config_init [ RunTime:0.000072s ] [0.000072s/0.027178s=0.26%]
- 15/22 . [ BEHAVIOR ] Run addons\marketingnotify\Hook @global_footer [ RunTime:0.000060s ] [0.000060s/0.027178s=0.22%]
- 16/22 . [ BEHAVIOR ] Run app\common\behavior\Common @app_dispatch [ RunTime:0.000054s ] [0.000054s/0.027178s=0.20%]
- 17/22 . [ BEHAVIOR ] Run Closure @app_init [ RunTime:0.000049s ] [0.000049s/0.027178s=0.18%]
- 18/22 . [ BEHAVIOR ] Run addons\marketingpopup\Hook @global_footer [ RunTime:0.000047s ] [0.000047s/0.027178s=0.17%]
- 19/22 . [ BEHAVIOR ] Run \addons\listener\Listener @app_init [ RunTime:0.000039s ] [0.000039s/0.027178s=0.14%]
- 20/22 . [ BEHAVIOR ] Run \addons\aws\Aws @upload_config_init [ RunTime:0.000035s ] [0.000035s/0.027178s=0.13%]
- 21/22 . [ BEHAVIOR ] Run \addons\aws\Aws @module_init [ RunTime:0.000033s ] [0.000033s/0.027178s=0.12%]
- 22/22 . [ BEHAVIOR ] Run Closure @app_init [ RunTime:0.000013s ] [0.000013s/0.027178s=0.05%]
- [ DB ] CONNECT:[ UseTime:0.002152s ] mysql:host=database-test2.cb81pdkxodkj.us-east-1.rds.amazonaws.com:3306;port=3306;dbname=shoppaas_1716192756317;charset=utf8mb4
- [ SQL ] SELECT COUNT(*) AS tp_count FROM `app_center` WHERE `name` = 'access_control' AND `is_installed` = 1 LIMIT 1 [ RunTime:0.000999s ]
- [ SQL ] SELECT * FROM `payment` WHERE `status` = '1' ORDER BY `weigh` DESC,`id` ASC [ RunTime:0.001232s ]
- [ SQL ] SELECT `value` FROM `config` WHERE `name` = 'channel_google' LIMIT 1 [ RunTime:0.001066s ]
- [ SQL ] SELECT `value` FROM `config` WHERE `name` = 'lang_auto_detect' LIMIT 1 [ RunTime:0.001101s ]
- [ SQL ] set time_zone = '+08:00' [ RunTime:0.002048s ]
- [ SQL ] SELECT `value` FROM `config` WHERE ( name = 'multiCurrencySwitch' ) LIMIT 1 [ RunTime:0.000947s ]
- [ SQL ] SELECT `value` FROM `config` WHERE ( name = 'byIpSwitch' ) LIMIT 1 [ RunTime:0.001009s ]
- [ SQL ] SELECT `value` FROM `config` WHERE `name` = 'customer_login_config' LIMIT 1 [ RunTime:0.001120s ]
- [ SQL ] SELECT * FROM `category` [ RunTime:0.001120s ]
- [ SQL ] SELECT COUNT(*) AS tp_count FROM `product` WHERE ( ( find_in_set('1',category_ids) ) ) AND `product`.`deletetime` IS NULL LIMIT 1 [ RunTime:0.001013s ]
- [ SQL ] SELECT COUNT(*) AS tp_count FROM `product` WHERE ( ( find_in_set('2',category_ids) ) ) AND `product`.`deletetime` IS NULL LIMIT 1 [ RunTime:0.000894s ]
- [ SQL ] SELECT COUNT(*) AS tp_count FROM `product` WHERE ( ( find_in_set('3',category_ids) ) ) AND `product`.`deletetime` IS NULL LIMIT 1 [ RunTime:0.000945s ]
- [ SQL ] SELECT COUNT(*) AS tp_count FROM `product` WHERE ( ( find_in_set('4',category_ids) ) ) AND `product`.`deletetime` IS NULL LIMIT 1 [ RunTime:0.000946s ]
- [ SQL ] SELECT COUNT(*) AS tp_count FROM `product` WHERE ( ( find_in_set('5',category_ids) ) ) AND `product`.`deletetime` IS NULL LIMIT 1 [ RunTime:0.000928s ]
- [ SQL ] SELECT COUNT(*) AS tp_count FROM `product` WHERE ( ( find_in_set('6',category_ids) ) ) AND `product`.`deletetime` IS NULL LIMIT 1 [ RunTime:0.000956s ]
- [ SQL ] SELECT COUNT(*) AS tp_count FROM `product` WHERE ( ( find_in_set('7',category_ids) ) ) AND `product`.`deletetime` IS NULL LIMIT 1 [ RunTime:0.000914s ]
- [ SQL ] SELECT COUNT(*) AS tp_count FROM `product` WHERE ( ( find_in_set('8',category_ids) ) ) AND `product`.`deletetime` IS NULL LIMIT 1 [ RunTime:0.000928s ]
- [ SQL ] SELECT COUNT(*) AS tp_count FROM `product` WHERE ( `status` = 'up' ) AND `product`.`deletetime` IS NULL LIMIT 1 [ RunTime:0.000981s ]
- [ SQL ] SELECT * FROM `product` WHERE ( `status` = 'up' ) AND `product`.`deletetime` IS NULL LIMIT 0,2000 [ RunTime:0.003474s ]
- [ SQL ] SELECT `value` FROM `config` WHERE `name` = 'klaviyo_config' LIMIT 1 [ RunTime:0.001260s ]
- [ SQL ] SELECT COUNT(*) AS tp_count FROM `app_center` WHERE `name` = 'salesmartly' AND `is_installed` = 1 LIMIT 1 [ RunTime:0.001012s ]
- [ SQL ] SELECT COUNT(*) AS tp_count FROM `themes_lang` WHERE ( lang_name='en' AND is_enable=1 AND transl_way=2 AND deletetime IS NULL ) LIMIT 1 [ RunTime:0.001150s ]
- [ SQL ] SELECT * FROM `category` WHERE `id` = 3 LIMIT 1 [ RunTime:0.001101s ]
- [ SQL ] SELECT p.id,p.type,p.title,p.subtitle,p.supplier,p.status,p.audit_status,p.audit_reject_times,p.auto_shelves_after_audit,p.is_tax,p.weigh,p.category_ids,p.product_tag_ids,p.product_tag_names,p.image,p.images,p.params,p.price,p.original_price,p.is_sku,p.likes,p.views,p.sales,p.size_country,p.size_guide,p.marketing_size_guide_id,p.show_sales,p.service_ids,p.shipping_type,p.shipping_ids,p.is_custom,p.is_custom_plus,p.custom_config,p.draft_product_id,p.seotitle,p.keywords,p.description,p.path,p.is_tob_sku,p.createtime,p.updatetime,p.deletetime,p.lang,(p.sales + p.show_sales) as total_sales,ifnull(y.price, p.price) price1 FROM `product` `p` LEFT JOIN `product_category_relation` ON `product_category_relation`.`product_id`=p.id and product_category_relation.category_id=3 LEFT JOIN (select min(price) price,product_id from ( SELECT `a`.`price`,`a`.`product_id` FROM `activity_product_sku_price` `a` INNER JOIN `activity` `b` ON `b`.`id`=a.activity_id and a.status = 'up' and b.deletetime is null and b.starttime < 1776505960 and b.endtime > 1776505960 WHERE `a`.`deletetime` IS NULL ) `t` group by `t`.`product_id`) `y` ON `y`.`product_id`=`p`.`id` WHERE ( `status` = 'up' AND ( find_in_set(3, category_ids) OR find_in_set(3, category_ids) ) ) AND `p`.`deletetime` IS NULL ORDER BY sort_for_category desc,product_category_relation.id asc [ RunTime:0.002628s ]
- [ SQL ] SELECT COUNT(*) AS tp_count FROM `product` WHERE `id` IN (19,18,17,16,15,14,13,12,11,10,9,8,7,6,5,4,3,2,1) AND `status` = 'up' AND ( deletetime is null ) LIMIT 1 [ RunTime:0.000999s ]
- [ SQL ] SELECT * FROM `category` WHERE `id` = 3 LIMIT 1 [ RunTime:0.001104s ]
- [ SQL ] SELECT p.*,(p.sales + p.show_sales) as total_sales,ifnull(y.price, p.price) price1 FROM `product` `p` LEFT JOIN `product_category_relation` ON `product_category_relation`.`product_id`=p.id and product_category_relation.category_id=3 LEFT JOIN (select min(price) price,product_id from ( SELECT `a`.`price`,`a`.`product_id` FROM `activity_product_sku_price` `a` INNER JOIN `activity` `b` ON `b`.`id`=a.activity_id and a.status = 'up' and b.deletetime is null and b.starttime < 1776505960 and b.endtime > 1776505960 WHERE `a`.`deletetime` IS NULL ) `t` group by `t`.`product_id`) `y` ON `y`.`product_id`=`p`.`id` WHERE ( `p`.`status` = 'up' AND `p`.`deletetime` IS NULL AND `p`.`id` IN ('19','18','17','16','15','14','13','12') ) AND `p`.`deletetime` IS NULL ORDER BY sort_for_category desc,product_category_relation.id asc [ RunTime:0.002145s ]
- [ SQL ] SELECT * FROM `discuss` WHERE ( `status` = 'show' AND `product_id` IN (19,18,17,16,15,14,13,12) ) AND `discuss`.`deletetime` IS NULL [ RunTime:0.001362s ]
- [ SQL ] SELECT * FROM `product_sku_price` WHERE ( `product_id` IN (19,18,17,16,15,14,13,12) ) AND `product_sku_price`.`deletetime` IS NULL ORDER BY `weigh` ASC,`id` ASC [ RunTime:0.001231s ]
- [ SQL ] SELECT * FROM `activity` WHERE ( ( 1776505960 > starttime && 1776505960 < endtime ) ) AND `activity`.`deletetime` IS NULL ORDER BY `starttime` ASC LIMIT 30 [ RunTime:0.001177s ]
- [ SQL ] SELECT COUNT(*) AS tp_count FROM `themes_lang` WHERE ( lang_name='en' AND is_enable=1 AND transl_way=2 AND deletetime IS NULL ) LIMIT 1 [ RunTime:0.001414s ]
- [ SQL ] SELECT COUNT(*) AS tp_count FROM `themes_lang` WHERE ( lang_name='en' AND is_enable=1 AND transl_way=2 AND deletetime IS NULL ) LIMIT 1 [ RunTime:0.001054s ]
- [ SQL ] SELECT COUNT(*) AS tp_count FROM `themes_lang` WHERE ( lang_name='en' AND is_enable=1 AND transl_way=2 AND deletetime IS NULL ) LIMIT 1 [ RunTime:0.001068s ]
- [ SQL ] SELECT jt.product_id
FROM `marketing_product_combination` pcm,
JSON_TABLE(
pcm.json,
"$[*]" COLUMNS (
product_id INT PATH "$.product_id"
)
) AS jt
WHERE
pcm.`starts_at` <= 1776505960
AND pcm.`ends_at` >= 1776505960
AND pcm.`status` = 'enable'
AND pcm.`deletetime` IS NULL [ RunTime:0.001254s ]
- [ SQL ] SELECT * FROM `product_sku_price` WHERE ( `product_id` IN (20,19,18,16) ) AND `product_sku_price`.`deletetime` IS NULL [ RunTime:0.001156s ]
- [ SQL ] SELECT `a`.`id`,`a`.`json` FROM `marketing_product_combination` `a` INNER JOIN `marketing_activity_product_combination` `b` ON `a`.`id`=b.product_combination_id and b.product_id = 19 WHERE `a`.`starts_at` <= 1776505960 AND `a`.`ends_at` >= 1776505960 AND `a`.`status` = 'enable' LIMIT 1 [ RunTime:0.001051s ]
- [ SQL ] SELECT COUNT(*) AS tp_count FROM `product` WHERE ( `status` = 'up' AND `deletetime` IS NULL AND `id` IN (1,2,3,4) ) AND `product`.`deletetime` IS NULL LIMIT 1 [ RunTime:0.001223s ]
- [ SQL ] SELECT * FROM `product` WHERE ( `status` = 'up' AND `deletetime` IS NULL AND `id` IN (1,2,3,4) ) AND `product`.`deletetime` IS NULL ORDER BY field(id,1,2,3,4) LIMIT 0,24 [ RunTime:0.001455s ]
- [ SQL ] SELECT * FROM `discuss` WHERE ( `status` = 'show' AND `product_id` IN (1,2,3,4) ) AND `discuss`.`deletetime` IS NULL [ RunTime:0.001206s ]
- [ SQL ] SELECT * FROM `product_sku_price` WHERE ( `product_id` IN (1,2,3,4) ) AND `product_sku_price`.`deletetime` IS NULL ORDER BY `weigh` ASC,`id` ASC [ RunTime:0.001608s ]
- [ SQL ] SELECT * FROM `custom_activity_relation` WHERE `product_id` = 1 LIMIT 1 [ RunTime:0.001064s ]
- [ SQL ] SELECT `id` FROM `custom_activity` WHERE `id` = 1 AND `status` = '1' LIMIT 1 [ RunTime:0.001093s ]
- [ SQL ] SELECT `id` FROM `product` WHERE ( `status` = 'up' AND ( find_in_set(3, category_ids) OR find_in_set(3, category_ids) ) ) AND `product`.`deletetime` IS NULL ORDER BY `weigh` DESC [ RunTime:0.001133s ]
- [ SQL ] SELECT COUNT(*) AS tp_count FROM `product` WHERE ( `status` = 'up' AND `deletetime` IS NULL AND `id` IN (1,18,17) ) AND `product`.`deletetime` IS NULL LIMIT 1 [ RunTime:0.001081s ]
- [ SQL ] SELECT * FROM `product` WHERE ( `status` = 'up' AND `deletetime` IS NULL AND `id` IN (1,18,17) ) AND `product`.`deletetime` IS NULL ORDER BY field(id,1,18,17) LIMIT 0,24 [ RunTime:0.001231s ]
- [ SQL ] SELECT * FROM `discuss` WHERE ( `status` = 'show' AND `product_id` IN (1,18,17) ) AND `discuss`.`deletetime` IS NULL [ RunTime:0.001098s ]
- [ SQL ] SELECT * FROM `product_sku_price` WHERE ( `product_id` IN (1,18,17) ) AND `product_sku_price`.`deletetime` IS NULL ORDER BY `weigh` ASC,`id` ASC [ RunTime:0.001296s ]
- [ SQL ] SELECT * FROM `custom_activity_relation` WHERE `product_id` = 1 LIMIT 1 [ RunTime:0.001286s ]
- [ SQL ] SELECT `id` FROM `custom_activity` WHERE `id` = 1 AND `status` = '1' LIMIT 1 [ RunTime:0.000949s ]
- 1/50 . SELECT * FROM `product` WHERE ( `status` = 'up' ) AND `product`.`deletetime` IS NULL LIMIT 0,2000 [0.003474s/0.062662s=5.54%]
- 2/50 . SELECT p.id,p.type,p.title,p.subtitle,p.supplier,p.status,p.audit_status,p.audit_reject_times,p.auto_shelves_after_audit,p.is_tax,p.weigh,p.category_ids,p.product_tag_ids,p.product_tag_names,p.image,p.images,p.params,p.price,p.original_price,p.is_sku,p.likes,p.views,p.sales,p.size_country,p.size_guide,p.marketing_size_guide_id,p.show_sales,p.service_ids,p.shipping_type,p.shipping_ids,p.is_custom,p.is_custom_plus,p.custom_config,p.draft_product_id,p.seotitle,p.keywords,p.description,p.path,p.is_tob_sku,p.createtime,p.updatetime,p.deletetime,p.lang,(p.sales + p.show_sales) as total_sales,ifnull(y.price, p.price) price1 FROM `product` `p` LEFT JOIN `product_category_relation` ON `product_category_relation`.`product_id`=p.id and product_category_relation.category_id=3 LEFT JOIN (select min(price) price,product_id from ( SELECT `a`.`price`,`a`.`product_id` FROM `activity_product_sku_price` `a` INNER JOIN `activity` `b` ON `b`.`id`=a.activity_id and a.status = 'up' and b.deletetime is null and b.starttime < 1776505960 and b.endtime > 1776505960 WHERE `a`.`deletetime` IS NULL ) `t` group by `t`.`product_id`) `y` ON `y`.`product_id`=`p`.`id` WHERE ( `status` = 'up' AND ( find_in_set(3, category_ids) OR find_in_set(3, category_ids) ) ) AND `p`.`deletetime` IS NULL ORDER BY sort_for_category desc,product_category_relation.id asc [0.002628s/0.062662s=4.19%]
- 3/50 . CONNECT:[ UseTime:0.002152s ] mysql:host=database-test2.cb81pdkxodkj.us-east-1.rds.amazonaws.com:3306;port=3306;dbname=shoppaas_1716192756317;charset=utf8mb4 [0.002152s/0.062662s=3.43%]
- 4/50 . SELECT p.*,(p.sales + p.show_sales) as total_sales,ifnull(y.price, p.price) price1 FROM `product` `p` LEFT JOIN `product_category_relation` ON `product_category_relation`.`product_id`=p.id and product_category_relation.category_id=3 LEFT JOIN (select min(price) price,product_id from ( SELECT `a`.`price`,`a`.`product_id` FROM `activity_product_sku_price` `a` INNER JOIN `activity` `b` ON `b`.`id`=a.activity_id and a.status = 'up' and b.deletetime is null and b.starttime < 1776505960 and b.endtime > 1776505960 WHERE `a`.`deletetime` IS NULL ) `t` group by `t`.`product_id`) `y` ON `y`.`product_id`=`p`.`id` WHERE ( `p`.`status` = 'up' AND `p`.`deletetime` IS NULL AND `p`.`id` IN ('19','18','17','16','15','14','13','12') ) AND `p`.`deletetime` IS NULL ORDER BY sort_for_category desc,product_category_relation.id asc [0.002145s/0.062662s=3.42%]
- 5/50 . set time_zone = '+08:00' [0.002048s/0.062662s=3.27%]
- 6/50 . SELECT * FROM `product_sku_price` WHERE ( `product_id` IN (1,2,3,4) ) AND `product_sku_price`.`deletetime` IS NULL ORDER BY `weigh` ASC,`id` ASC [0.001608s/0.062662s=2.57%]
- 7/50 . SELECT * FROM `product` WHERE ( `status` = 'up' AND `deletetime` IS NULL AND `id` IN (1,2,3,4) ) AND `product`.`deletetime` IS NULL ORDER BY field(id,1,2,3,4) LIMIT 0,24 [0.001455s/0.062662s=2.32%]
- 8/50 . SELECT COUNT(*) AS tp_count FROM `themes_lang` WHERE ( lang_name='en' AND is_enable=1 AND transl_way=2 AND deletetime IS NULL ) LIMIT 1 [0.001414s/0.062662s=2.26%]
- 9/50 . SELECT * FROM `discuss` WHERE ( `status` = 'show' AND `product_id` IN (19,18,17,16,15,14,13,12) ) AND `discuss`.`deletetime` IS NULL [0.001362s/0.062662s=2.17%]
- 10/50 . SELECT * FROM `product_sku_price` WHERE ( `product_id` IN (1,18,17) ) AND `product_sku_price`.`deletetime` IS NULL ORDER BY `weigh` ASC,`id` ASC [0.001296s/0.062662s=2.07%]
- 11/50 . SELECT * FROM `custom_activity_relation` WHERE `product_id` = 1 LIMIT 1 [0.001286s/0.062662s=2.05%]
- 12/50 . SELECT `value` FROM `config` WHERE `name` = 'klaviyo_config' LIMIT 1 [0.001260s/0.062662s=2.01%]
- 13/50 . SELECT jt.product_id
FROM `marketing_product_combination` pcm,
JSON_TABLE(
pcm.json,
"$[*]" COLUMNS (
product_id INT PATH "$.product_id"
)
) AS jt
WHERE
pcm.`starts_at` <= 1776505960
AND pcm.`ends_at` >= 1776505960
AND pcm.`status` = 'enable'
AND pcm.`deletetime` IS NULL [0.001254s/0.062662s=2.00%]
- 14/50 . SELECT * FROM `payment` WHERE `status` = '1' ORDER BY `weigh` DESC,`id` ASC [0.001232s/0.062662s=1.97%]
- 15/50 . SELECT * FROM `product_sku_price` WHERE ( `product_id` IN (19,18,17,16,15,14,13,12) ) AND `product_sku_price`.`deletetime` IS NULL ORDER BY `weigh` ASC,`id` ASC [0.001231s/0.062662s=1.96%]
- 16/50 . SELECT * FROM `product` WHERE ( `status` = 'up' AND `deletetime` IS NULL AND `id` IN (1,18,17) ) AND `product`.`deletetime` IS NULL ORDER BY field(id,1,18,17) LIMIT 0,24 [0.001231s/0.062662s=1.96%]
- 17/50 . SELECT COUNT(*) AS tp_count FROM `product` WHERE ( `status` = 'up' AND `deletetime` IS NULL AND `id` IN (1,2,3,4) ) AND `product`.`deletetime` IS NULL LIMIT 1 [0.001223s/0.062662s=1.95%]
- 18/50 . SELECT * FROM `discuss` WHERE ( `status` = 'show' AND `product_id` IN (1,2,3,4) ) AND `discuss`.`deletetime` IS NULL [0.001206s/0.062662s=1.92%]
- 19/50 . SELECT * FROM `activity` WHERE ( ( 1776505960 > starttime && 1776505960 < endtime ) ) AND `activity`.`deletetime` IS NULL ORDER BY `starttime` ASC LIMIT 30 [0.001177s/0.062662s=1.88%]
- 20/50 . SELECT * FROM `product_sku_price` WHERE ( `product_id` IN (20,19,18,16) ) AND `product_sku_price`.`deletetime` IS NULL [0.001156s/0.062662s=1.84%]
- 21/50 . SELECT COUNT(*) AS tp_count FROM `themes_lang` WHERE ( lang_name='en' AND is_enable=1 AND transl_way=2 AND deletetime IS NULL ) LIMIT 1 [0.001150s/0.062662s=1.84%]
- 22/50 . SELECT `id` FROM `product` WHERE ( `status` = 'up' AND ( find_in_set(3, category_ids) OR find_in_set(3, category_ids) ) ) AND `product`.`deletetime` IS NULL ORDER BY `weigh` DESC [0.001133s/0.062662s=1.81%]
- 23/50 . SELECT `value` FROM `config` WHERE `name` = 'customer_login_config' LIMIT 1 [0.001120s/0.062662s=1.79%]
- 24/50 . SELECT * FROM `category` [0.001120s/0.062662s=1.79%]
- 25/50 . SELECT * FROM `category` WHERE `id` = 3 LIMIT 1 [0.001104s/0.062662s=1.76%]
- 26/50 . SELECT * FROM `category` WHERE `id` = 3 LIMIT 1 [0.001101s/0.062662s=1.76%]
- 27/50 . SELECT `value` FROM `config` WHERE `name` = 'lang_auto_detect' LIMIT 1 [0.001101s/0.062662s=1.76%]
- 28/50 . SELECT * FROM `discuss` WHERE ( `status` = 'show' AND `product_id` IN (1,18,17) ) AND `discuss`.`deletetime` IS NULL [0.001098s/0.062662s=1.75%]
- 29/50 . SELECT `id` FROM `custom_activity` WHERE `id` = 1 AND `status` = '1' LIMIT 1 [0.001093s/0.062662s=1.74%]
- 30/50 . SELECT COUNT(*) AS tp_count FROM `product` WHERE ( `status` = 'up' AND `deletetime` IS NULL AND `id` IN (1,18,17) ) AND `product`.`deletetime` IS NULL LIMIT 1 [0.001081s/0.062662s=1.73%]
- 31/50 . SELECT COUNT(*) AS tp_count FROM `themes_lang` WHERE ( lang_name='en' AND is_enable=1 AND transl_way=2 AND deletetime IS NULL ) LIMIT 1 [0.001068s/0.062662s=1.70%]
- 32/50 . SELECT `value` FROM `config` WHERE `name` = 'channel_google' LIMIT 1 [0.001066s/0.062662s=1.70%]
- 33/50 . SELECT * FROM `custom_activity_relation` WHERE `product_id` = 1 LIMIT 1 [0.001064s/0.062662s=1.70%]
- 34/50 . SELECT COUNT(*) AS tp_count FROM `themes_lang` WHERE ( lang_name='en' AND is_enable=1 AND transl_way=2 AND deletetime IS NULL ) LIMIT 1 [0.001054s/0.062662s=1.68%]
- 35/50 . SELECT `a`.`id`,`a`.`json` FROM `marketing_product_combination` `a` INNER JOIN `marketing_activity_product_combination` `b` ON `a`.`id`=b.product_combination_id and b.product_id = 19 WHERE `a`.`starts_at` <= 1776505960 AND `a`.`ends_at` >= 1776505960 AND `a`.`status` = 'enable' LIMIT 1 [0.001051s/0.062662s=1.68%]
- 36/50 . SELECT COUNT(*) AS tp_count FROM `product` WHERE ( ( find_in_set('1',category_ids) ) ) AND `product`.`deletetime` IS NULL LIMIT 1 [0.001013s/0.062662s=1.62%]
- 37/50 . SELECT COUNT(*) AS tp_count FROM `app_center` WHERE `name` = 'salesmartly' AND `is_installed` = 1 LIMIT 1 [0.001012s/0.062662s=1.62%]
- 38/50 . SELECT `value` FROM `config` WHERE ( name = 'byIpSwitch' ) LIMIT 1 [0.001009s/0.062662s=1.61%]
- 39/50 . SELECT COUNT(*) AS tp_count FROM `app_center` WHERE `name` = 'access_control' AND `is_installed` = 1 LIMIT 1 [0.000999s/0.062662s=1.59%]
- 40/50 . SELECT COUNT(*) AS tp_count FROM `product` WHERE `id` IN (19,18,17,16,15,14,13,12,11,10,9,8,7,6,5,4,3,2,1) AND `status` = 'up' AND ( deletetime is null ) LIMIT 1 [0.000999s/0.062662s=1.59%]
- 41/50 . SELECT COUNT(*) AS tp_count FROM `product` WHERE ( `status` = 'up' ) AND `product`.`deletetime` IS NULL LIMIT 1 [0.000981s/0.062662s=1.57%]
- 42/50 . SELECT COUNT(*) AS tp_count FROM `product` WHERE ( ( find_in_set('6',category_ids) ) ) AND `product`.`deletetime` IS NULL LIMIT 1 [0.000956s/0.062662s=1.53%]
- 43/50 . SELECT `id` FROM `custom_activity` WHERE `id` = 1 AND `status` = '1' LIMIT 1 [0.000949s/0.062662s=1.51%]
- 44/50 . SELECT `value` FROM `config` WHERE ( name = 'multiCurrencySwitch' ) LIMIT 1 [0.000947s/0.062662s=1.51%]
- 45/50 . SELECT COUNT(*) AS tp_count FROM `product` WHERE ( ( find_in_set('4',category_ids) ) ) AND `product`.`deletetime` IS NULL LIMIT 1 [0.000946s/0.062662s=1.51%]
- 46/50 . SELECT COUNT(*) AS tp_count FROM `product` WHERE ( ( find_in_set('3',category_ids) ) ) AND `product`.`deletetime` IS NULL LIMIT 1 [0.000945s/0.062662s=1.51%]
- 47/50 . SELECT COUNT(*) AS tp_count FROM `product` WHERE ( ( find_in_set('5',category_ids) ) ) AND `product`.`deletetime` IS NULL LIMIT 1 [0.000928s/0.062662s=1.48%]
- 48/50 . SELECT COUNT(*) AS tp_count FROM `product` WHERE ( ( find_in_set('8',category_ids) ) ) AND `product`.`deletetime` IS NULL LIMIT 1 [0.000928s/0.062662s=1.48%]
- 49/50 . SELECT COUNT(*) AS tp_count FROM `product` WHERE ( ( find_in_set('7',category_ids) ) ) AND `product`.`deletetime` IS NULL LIMIT 1 [0.000914s/0.062662s=1.46%]
- 50/50 . SELECT COUNT(*) AS tp_count FROM `product` WHERE ( ( find_in_set('2',category_ids) ) ) AND `product`.`deletetime` IS NULL LIMIT 1 [0.000894s/0.062662s=1.43%]
- 1/4. SELECT COUNT(*) AS tp_count FROM `themes_lang` WHERE ( lang_name='en' AND is_enable=1 AND transl_way=2 AND deletetime IS NULL ) LIMIT 1 [4 times, 0.004686s/0.062662s=7.48%]
- 2/4. SELECT `id` FROM `custom_activity` WHERE `id` = 1 AND `status` = '1' LIMIT 1 [2 times, 0.002042s/0.062662s=3.26%]
- 3/4. SELECT * FROM `custom_activity_relation` WHERE `product_id` = 1 LIMIT 1 [2 times, 0.00235s/0.062662s=3.75%]
- 4/4. SELECT * FROM `category` WHERE `id` = 3 LIMIT 1 [2 times, 0.002205s/0.062662s=3.52%]