基本
文件
流程
慢流程
错误
SQL
慢sql
重复sql
调试
- 请求信息 : 2026-04-11 17:42:55 HTTP/1.1 GET : cyf11.test3.shoppaas.co/category/all
- 运行时间 : 0.332356s [ 吞吐率:3.01req/s ] 内存消耗:2,414.91kb 文件加载:264
- 查询信息 : [耗时:0.094741s/0.332356 28.51% ] 47 queries ,4 writes
- 缓存信息 : 20 reads,1 writes
- 配置加载 : 84
- 会话信息 : SESSION_ID=3if4jeod6pilbt3vf4ht7jsul8
- [ BEHAVIOR ] Run Closure @app_init [ RunTime:0.000014s ]
- [ CACHE ] INIT app\common\library\cache\driver\Redis
- [ BEHAVIOR ] Run \addons\aws\Aws @app_init [ RunTime:0.000391s ]
- [ BEHAVIOR ] Run \addons\listener\Listener @app_init [ RunTime:0.000062s ]
- [ BEHAVIOR ] Run Closure @app_init [ RunTime:0.000075s ]
- [ BEHAVIOR ] Run app\common\behavior\Common @app_dispatch [ RunTime:0.000087s ]
- [ ROUTE ] array (
'type' => 'module',
'module' =>
array (
0 => 'index',
1 => 'product',
2 => 'lists',
),
'convert' => false,
)
- [ HEADER ] array (
'x-forwarded-proto' => 'https',
'x-forwarded-host' => 'cyf11.test3.shoppaas.co',
'x-forwarded-for' => '216.73.216.209',
'referer' => 'http://cyf11.test3.shoppaas.co/category/all',
'cookie' => 'PHPSESSID=3if4jeod6pilbt3vf4ht7jsul8; 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%3A0%7D',
'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' => 'cyf11.test3.shoppaas.co',
'content-length' => '',
'content-type' => '',
)
- [ PARAM ] array (
'path' => 'all',
)
- [ LANG ] /wwwroot/public/../application/index/lang/en-us.php
- [ BEHAVIOR ] Run app\common\behavior\Common @module_init [ RunTime:0.012924s ]
- [ BEHAVIOR ] Run \addons\aws\Aws @module_init [ RunTime:0.000046s ]
- [ DB ] INIT mysql
- [ BEHAVIOR ] Run \addons\aws\Aws @upload_config_init [ RunTime:0.000047s ]
- [ BEHAVIOR ] Run \addons\nkeditor\Nkeditor @config_init [ RunTime:0.000101s ]
- [ SESSION ] INIT array (
'id' => '',
'var_session_id' => '',
'session_name' => 'shoppaas_1723864021953:',
'type' => 'redis',
'host' => 'master.redis-test8.evt7pw.use1.cache.amazonaws.com',
'port' => '6379',
'password' => '',
'select' => 6,
'auto_start' => true,
)
- [ RUN ] app\index\controller\Product->lists[ /wwwroot/application/index/controller/Product.php ]
- [ VIEW ] /wwwroot/template/brooklyn-playful/template/product_lists.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 => 'theme_diy_mode',
14 => 'theme_config',
15 => 'icon_image',
16 => 'head_code',
17 => 'end_code',
18 => 'controllername',
19 => 'actionname',
20 => 'user',
21 => 'language',
22 => 'lang',
23 => 'is_rtl_lang',
24 => 'site',
25 => 'config',
26 => 'currency_switch',
27 => 'currency_list',
28 => 'currency_site',
29 => 'currency',
30 => 'cart',
31 => 'subscribing',
32 => 'login',
33 => 'policies',
34 => 'is_mobile',
35 => 'not_show_login',
36 => 'customer_login_status',
37 => 'config_site_version',
38 => 'category',
39 => 'filters',
40 => 'price',
41 => 'oldprice',
42 => 'oldsku',
43 => 'oldsupplier',
44 => 'productList',
45 => 'appends',
46 => 'product_review',
47 => 'empty',
48 => 'view',
49 => 'order',
50 => 'limit',
51 => 'seotitle',
52 => 'seokeywords',
53 => 'seodescription',
54 => 'page_type',
) ]
- [ BEHAVIOR ] Run addons\pixel\Hook @pixels [ RunTime:0.001989s ]
- [ BEHAVIOR ] Run addons\facebookpixel\Hook @pixels [ RunTime:0.001892s ]
- [ BEHAVIOR ] Run addons\snapchatpixel\Hook @pixels [ RunTime:0.001810s ]
- [ BEHAVIOR ] Run addons\googlepixel\Hook @pixels [ RunTime:0.001815s ]
- [ BEHAVIOR ] Run addons\tiktokpixel\Hook @pixels [ RunTime:0.001841s ]
- [ BEHAVIOR ] Run addons\mediago\Hook @pixels [ RunTime:0.001882s ]
- [ BEHAVIOR ] Run addons\taboolapixel\Hook @pixels [ RunTime:0.001728s ]
- [ BEHAVIOR ] Run addons\klaviyopixel\Hook @pixels [ RunTime:0.001147s ]
- [ BEHAVIOR ] Run addons\aiservices\Hook @pixels [ RunTime:0.001137s ]
- [ VIEW ] /wwwroot/template/brooklyn-playful/../brooklyn-playful/template/goods_recommendation.html [ array (
0 => 'empty',
1 => 'section_id',
2 => 'section_title',
3 => 'section_limit_num',
4 => 'productList',
5 => 'template_data',
6 => 'theme_config',
7 => 'currency',
8 => 'page_type',
9 => 'theme_key',
10 => 'theme_id',
11 => 'config_sell_color_scheme_class',
12 => 'config_sell_out_color_scheme_class',
) ]
- [ BEHAVIOR ] Run addons\featuredproduct\Hook @global_content_bottom [ RunTime:0.022693s ]
- [ BEHAVIOR ] Run addons\marketingnotify\Hook @global_footer [ RunTime:0.001891s ]
- [ BEHAVIOR ] Run addons\marketingcookie\Hook @global_footer [ RunTime:0.001807s ]
- [ BEHAVIOR ] Run addons\marketingpopup\Hook @global_footer [ RunTime:0.001065s ]
- 1/22 . [ BEHAVIOR ] Run addons\featuredproduct\Hook @global_content_bottom [ RunTime:0.022693s ] [0.022693s/0.056444s=40.20%]
- 2/22 . [ BEHAVIOR ] Run app\common\behavior\Common @module_init [ RunTime:0.012924s ] [0.012924s/0.056444s=22.90%]
- 3/22 . [ BEHAVIOR ] Run addons\pixel\Hook @pixels [ RunTime:0.001989s ] [0.001989s/0.056444s=3.52%]
- 4/22 . [ BEHAVIOR ] Run addons\facebookpixel\Hook @pixels [ RunTime:0.001892s ] [0.001892s/0.056444s=3.35%]
- 5/22 . [ BEHAVIOR ] Run addons\marketingnotify\Hook @global_footer [ RunTime:0.001891s ] [0.001891s/0.056444s=3.35%]
- 6/22 . [ BEHAVIOR ] Run addons\mediago\Hook @pixels [ RunTime:0.001882s ] [0.001882s/0.056444s=3.33%]
- 7/22 . [ BEHAVIOR ] Run addons\tiktokpixel\Hook @pixels [ RunTime:0.001841s ] [0.001841s/0.056444s=3.26%]
- 8/22 . [ BEHAVIOR ] Run addons\googlepixel\Hook @pixels [ RunTime:0.001815s ] [0.001815s/0.056444s=3.22%]
- 9/22 . [ BEHAVIOR ] Run addons\snapchatpixel\Hook @pixels [ RunTime:0.001810s ] [0.001810s/0.056444s=3.21%]
- 10/22 . [ BEHAVIOR ] Run addons\marketingcookie\Hook @global_footer [ RunTime:0.001807s ] [0.001807s/0.056444s=3.20%]
- 11/22 . [ BEHAVIOR ] Run addons\taboolapixel\Hook @pixels [ RunTime:0.001728s ] [0.001728s/0.056444s=3.06%]
- 12/22 . [ BEHAVIOR ] Run addons\klaviyopixel\Hook @pixels [ RunTime:0.001147s ] [0.001147s/0.056444s=2.03%]
- 13/22 . [ BEHAVIOR ] Run addons\aiservices\Hook @pixels [ RunTime:0.001137s ] [0.001137s/0.056444s=2.01%]
- 14/22 . [ BEHAVIOR ] Run addons\marketingpopup\Hook @global_footer [ RunTime:0.001065s ] [0.001065s/0.056444s=1.89%]
- 15/22 . [ BEHAVIOR ] Run \addons\aws\Aws @app_init [ RunTime:0.000391s ] [0.000391s/0.056444s=0.69%]
- 16/22 . [ BEHAVIOR ] Run \addons\nkeditor\Nkeditor @config_init [ RunTime:0.000101s ] [0.000101s/0.056444s=0.18%]
- 17/22 . [ BEHAVIOR ] Run app\common\behavior\Common @app_dispatch [ RunTime:0.000087s ] [0.000087s/0.056444s=0.15%]
- 18/22 . [ BEHAVIOR ] Run Closure @app_init [ RunTime:0.000075s ] [0.000075s/0.056444s=0.13%]
- 19/22 . [ BEHAVIOR ] Run \addons\listener\Listener @app_init [ RunTime:0.000062s ] [0.000062s/0.056444s=0.11%]
- 20/22 . [ BEHAVIOR ] Run \addons\aws\Aws @upload_config_init [ RunTime:0.000047s ] [0.000047s/0.056444s=0.08%]
- 21/22 . [ BEHAVIOR ] Run \addons\aws\Aws @module_init [ RunTime:0.000046s ] [0.000046s/0.056444s=0.08%]
- 22/22 . [ BEHAVIOR ] Run Closure @app_init [ RunTime:0.000014s ] [0.000014s/0.056444s=0.02%]
- [ DB ] CONNECT:[ UseTime:0.008001s ] mysql:host=database-test2.cb81pdkxodkj.us-east-1.rds.amazonaws.com:3306;port=3306;dbname=shoppaas_1723864021953;charset=utf8mb4
- [ SQL ] SELECT COUNT(*) AS tp_count FROM `app_center` WHERE `name` = 'product_topic' AND `is_installed` = 1 LIMIT 1 [ RunTime:0.001238s ]
- [ SQL ] SELECT COUNT(*) AS tp_count FROM `app_center` WHERE `name` = 'access_control' AND `is_installed` = 1 LIMIT 1 [ RunTime:0.007480s ]
- [ SQL ] SELECT * FROM `payment` WHERE `status` = '1' ORDER BY `weigh` DESC,`id` ASC [ RunTime:0.001464s ]
- [ SQL ] SELECT `value` FROM `config` WHERE `name` = 'channel_google' LIMIT 1 [ RunTime:0.001799s ]
- [ SQL ] SELECT `value` FROM `config` WHERE `name` = 'lang_auto_detect' LIMIT 1 [ RunTime:0.008831s ]
- [ SQL ] set time_zone = '+08:00' [ RunTime:0.000939s ]
- [ SQL ] SELECT `value` FROM `config` WHERE ( name = 'multiCurrencySwitch' ) LIMIT 1 [ RunTime:0.002286s ]
- [ SQL ] SELECT `value` FROM `config` WHERE ( name = 'byIpSwitch' ) LIMIT 1 [ RunTime:0.002731s ]
- [ SQL ] SELECT `value` FROM `config` WHERE `name` = 'customer_login_config' LIMIT 1 [ RunTime:0.001119s ]
- [ SQL ] SELECT @@session.sql_mode [ RunTime:0.003054s ]
- [ SQL ] set session sql_mode='STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION' [ RunTime:0.000803s ]
- [ 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 (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 < 1775900576 and b.endtime > 1775900576 WHERE `a`.`deletetime` IS NULL ) `t` group by `t`.`product_id`) `y` ON `y`.`product_id`=`p`.`id` WHERE ( `p`.`status` IN ('up') AND ( ( find_in_set(4, category_ids) ) OR ( find_in_set(3, category_ids) ) OR ( find_in_set(2, category_ids) ) OR ( find_in_set(1, category_ids) ) ) ) AND `p`.`deletetime` IS NULL ORDER BY weigh desc, id desc [ RunTime:0.008532s ]
- [ SQL ] select p.name,p1.name cname from product_sku as p left join product_sku as p1
on p1.pid = p.id where p.pid = 0 and p.product_id in (5,4,3,2,1) group by binary(p.name), binary(p1.name); [ RunTime:0.002030s ]
- [ SQL ] SELECT @@session.sql_mode [ RunTime:0.001619s ]
- [ SQL ] set session sql_mode='STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION' [ RunTime:0.001035s ]
- [ SQL ] SELECT COUNT(*) AS tp_count FROM `product` `p` 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 < 1775900576 and b.endtime > 1775900576 WHERE `a`.`deletetime` IS NULL ) `t` group by `t`.`product_id`) `y` ON `y`.`product_id`=`p`.`id` WHERE ( `p`.`status` IN ('up') AND ( ( find_in_set(4, category_ids) ) OR ( find_in_set(3, category_ids) ) OR ( find_in_set(2, category_ids) ) OR ( find_in_set(1, category_ids) ) ) ) AND `p`.`deletetime` IS NULL LIMIT 1 [ RunTime:0.002988s ]
- [ 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 (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 < 1775900576 and b.endtime > 1775900576 WHERE `a`.`deletetime` IS NULL ) `t` group by `t`.`product_id`) `y` ON `y`.`product_id`=`p`.`id` WHERE ( `p`.`status` IN ('up') AND ( ( find_in_set(4, category_ids) ) OR ( find_in_set(3, category_ids) ) OR ( find_in_set(2, category_ids) ) OR ( find_in_set(1, category_ids) ) ) ) AND `p`.`deletetime` IS NULL ORDER BY weigh desc,id desc LIMIT 0,12 [ RunTime:0.001453s ]
- [ SQL ] SELECT * FROM `discuss` WHERE ( `status` = 'show' AND `product_id` IN (5,4,3,2,1) ) AND `discuss`.`deletetime` IS NULL [ RunTime:0.002063s ]
- [ SQL ] SELECT * FROM `product_sku_price` WHERE ( `product_id` IN (5,4,3,2,1) ) AND `product_sku_price`.`deletetime` IS NULL ORDER BY `weigh` ASC,`id` ASC [ RunTime:0.001093s ]
- [ SQL ] SELECT * FROM `activity` WHERE ( ( 1775900576 > starttime && 1775900576 < endtime ) ) AND `activity`.`deletetime` IS NULL ORDER BY `starttime` ASC LIMIT 30 [ RunTime:0.000917s ]
- [ SQL ] set session sql_mode='STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION' [ RunTime:0.000863s ]
- [ SQL ] SELECT `value` FROM `config` WHERE `name` = 'product_review' LIMIT 1 [ RunTime:0.000854s ]
- [ 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.000832s ]
- [ SQL ] SELECT `id` FROM `category` WHERE `path` = 'all' LIMIT 1 [ RunTime:0.000807s ]
- [ SQL ] select p.id,title ,price from product_category_relation as pcr left join product as p on p.id = pcr.product_id where pcr.category_id = 1
and p.status = "up" and p.deletetime is null limit 40 [ RunTime:0.000907s ]
- [ SQL ] SELECT `value` FROM `config` WHERE `name` = 'klaviyo_config' LIMIT 1 [ RunTime:0.001017s ]
- [ SQL ] SELECT COUNT(*) AS tp_count FROM `app_center` WHERE `name` = 'salesmartly' AND `is_installed` = 1 LIMIT 1 [ RunTime:0.001016s ]
- [ SQL ] SELECT * FROM `themes_menu_item` WHERE `themes_menu_item`.`deletetime` IS NULL [ RunTime:0.000886s ]
- [ 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.000892s ]
- [ SQL ] SELECT * FROM `custom_activity_relation` WHERE `product_id` = 5 LIMIT 1 [ RunTime:0.000979s ]
- [ SQL ] SELECT `id` FROM `custom_activity` WHERE `id` = 2 AND `status` = '1' LIMIT 1 [ RunTime:0.001055s ]
- [ 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.001085s ]
- [ SQL ] SELECT * FROM `custom_activity_relation` WHERE `product_id` = 5 LIMIT 1 [ RunTime:0.000869s ]
- [ SQL ] SELECT `id` FROM `custom_activity` WHERE `id` = 2 AND `status` = '1' LIMIT 1 [ RunTime:0.000908s ]
- [ SQL ] SELECT * FROM `custom_activity_relation` WHERE `product_id` = 5 LIMIT 1 [ RunTime:0.001336s ]
- [ SQL ] SELECT `id` FROM `custom_activity` WHERE `id` = 2 AND `status` = '1' LIMIT 1 [ RunTime:0.000863s ]
- [ SQL ] SELECT * FROM `custom_activity_relation` WHERE `product_id` = 4 LIMIT 1 [ RunTime:0.001522s ]
- [ SQL ] SELECT `id` FROM `custom_activity` WHERE `id` = 1 AND `status` = '1' LIMIT 1 [ RunTime:0.000886s ]
- [ SQL ] SELECT * FROM `custom_activity_relation` WHERE `product_id` = 4 LIMIT 1 [ RunTime:0.000941s ]
- [ SQL ] SELECT `id` FROM `custom_activity` WHERE `id` = 1 AND `status` = '1' LIMIT 1 [ RunTime:0.000936s ]
- [ SQL ] SELECT * FROM `custom_activity_relation` WHERE `product_id` = 4 LIMIT 1 [ RunTime:0.000926s ]
- [ SQL ] SELECT `id` FROM `custom_activity` WHERE `id` = 1 AND `status` = '1' LIMIT 1 [ RunTime:0.003211s ]
- [ SQL ] SELECT COUNT(*) AS tp_count FROM `product` WHERE ( `status` = 'up' AND `deletetime` IS NULL AND `id` IN (4,3,2,1) ) AND `product`.`deletetime` IS NULL LIMIT 1 [ RunTime:0.001210s ]
- [ SQL ] SELECT * FROM `product` WHERE ( `status` = 'up' AND `deletetime` IS NULL AND `id` IN (4,3,2,1) ) AND `product`.`deletetime` IS NULL ORDER BY field(id,4,3,2,1) LIMIT 0,15 [ RunTime:0.001221s ]
- [ SQL ] SELECT * FROM `discuss` WHERE ( `status` = 'show' AND `product_id` IN (4,3,2,1) ) AND `discuss`.`deletetime` IS NULL [ RunTime:0.001008s ]
- [ SQL ] SELECT * FROM `product_sku_price` WHERE ( `product_id` IN (4,3,2,1) ) AND `product_sku_price`.`deletetime` IS NULL ORDER BY `weigh` ASC,`id` ASC [ RunTime:0.001228s ]
- [ SQL ] SELECT `id`,`name`,`template`,`version`,`type`,`remark`,`weigh`,`createtime`,`updatetime`,`deletetime` FROM `themes` WHERE ( `type` = 'release' ) AND `themes`.`deletetime` IS NULL LIMIT 1 [ RunTime:0.001124s ]
- [ SQL ] SELECT * FROM `custom_activity_relation` WHERE `product_id` = 4 LIMIT 1 [ RunTime:0.000965s ]
- [ SQL ] SELECT `id` FROM `custom_activity` WHERE `id` = 1 AND `status` = '1' LIMIT 1 [ RunTime:0.000907s ]
- [ SQL ] SELECT * FROM `custom_activity_relation` WHERE `product_id` = 4 LIMIT 1 [ RunTime:0.001099s ]
- [ SQL ] SELECT `id` FROM `custom_activity` WHERE `id` = 1 AND `status` = '1' LIMIT 1 [ RunTime:0.000913s ]
- 1/52 . SELECT `value` FROM `config` WHERE `name` = 'lang_auto_detect' LIMIT 1 [0.008831s/0.094741s=9.32%]
- 2/52 . 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 (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 < 1775900576 and b.endtime > 1775900576 WHERE `a`.`deletetime` IS NULL ) `t` group by `t`.`product_id`) `y` ON `y`.`product_id`=`p`.`id` WHERE ( `p`.`status` IN ('up') AND ( ( find_in_set(4, category_ids) ) OR ( find_in_set(3, category_ids) ) OR ( find_in_set(2, category_ids) ) OR ( find_in_set(1, category_ids) ) ) ) AND `p`.`deletetime` IS NULL ORDER BY weigh desc, id desc [0.008532s/0.094741s=9.01%]
- 3/52 . CONNECT:[ UseTime:0.008001s ] mysql:host=database-test2.cb81pdkxodkj.us-east-1.rds.amazonaws.com:3306;port=3306;dbname=shoppaas_1723864021953;charset=utf8mb4 [0.008001s/0.094741s=8.45%]
- 4/52 . SELECT COUNT(*) AS tp_count FROM `app_center` WHERE `name` = 'access_control' AND `is_installed` = 1 LIMIT 1 [0.007480s/0.094741s=7.90%]
- 5/52 . SELECT `id` FROM `custom_activity` WHERE `id` = 1 AND `status` = '1' LIMIT 1 [0.003211s/0.094741s=3.39%]
- 6/52 . SELECT @@session.sql_mode [0.003054s/0.094741s=3.22%]
- 7/52 . SELECT COUNT(*) AS tp_count FROM `product` `p` 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 < 1775900576 and b.endtime > 1775900576 WHERE `a`.`deletetime` IS NULL ) `t` group by `t`.`product_id`) `y` ON `y`.`product_id`=`p`.`id` WHERE ( `p`.`status` IN ('up') AND ( ( find_in_set(4, category_ids) ) OR ( find_in_set(3, category_ids) ) OR ( find_in_set(2, category_ids) ) OR ( find_in_set(1, category_ids) ) ) ) AND `p`.`deletetime` IS NULL LIMIT 1 [0.002988s/0.094741s=3.15%]
- 8/52 . SELECT `value` FROM `config` WHERE ( name = 'byIpSwitch' ) LIMIT 1 [0.002731s/0.094741s=2.88%]
- 9/52 . SELECT `value` FROM `config` WHERE ( name = 'multiCurrencySwitch' ) LIMIT 1 [0.002286s/0.094741s=2.41%]
- 10/52 . SELECT * FROM `discuss` WHERE ( `status` = 'show' AND `product_id` IN (5,4,3,2,1) ) AND `discuss`.`deletetime` IS NULL [0.002063s/0.094741s=2.18%]
- 11/52 . select p.name,p1.name cname from product_sku as p left join product_sku as p1
on p1.pid = p.id where p.pid = 0 and p.product_id in (5,4,3,2,1) group by binary(p.name), binary(p1.name); [0.002030s/0.094741s=2.14%]
- 12/52 . SELECT `value` FROM `config` WHERE `name` = 'channel_google' LIMIT 1 [0.001799s/0.094741s=1.90%]
- 13/52 . SELECT @@session.sql_mode [0.001619s/0.094741s=1.71%]
- 14/52 . SELECT * FROM `custom_activity_relation` WHERE `product_id` = 4 LIMIT 1 [0.001522s/0.094741s=1.61%]
- 15/52 . SELECT * FROM `payment` WHERE `status` = '1' ORDER BY `weigh` DESC,`id` ASC [0.001464s/0.094741s=1.55%]
- 16/52 . 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 (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 < 1775900576 and b.endtime > 1775900576 WHERE `a`.`deletetime` IS NULL ) `t` group by `t`.`product_id`) `y` ON `y`.`product_id`=`p`.`id` WHERE ( `p`.`status` IN ('up') AND ( ( find_in_set(4, category_ids) ) OR ( find_in_set(3, category_ids) ) OR ( find_in_set(2, category_ids) ) OR ( find_in_set(1, category_ids) ) ) ) AND `p`.`deletetime` IS NULL ORDER BY weigh desc,id desc LIMIT 0,12 [0.001453s/0.094741s=1.53%]
- 17/52 . SELECT * FROM `custom_activity_relation` WHERE `product_id` = 5 LIMIT 1 [0.001336s/0.094741s=1.41%]
- 18/52 . SELECT COUNT(*) AS tp_count FROM `app_center` WHERE `name` = 'product_topic' AND `is_installed` = 1 LIMIT 1 [0.001238s/0.094741s=1.31%]
- 19/52 . SELECT * FROM `product_sku_price` WHERE ( `product_id` IN (4,3,2,1) ) AND `product_sku_price`.`deletetime` IS NULL ORDER BY `weigh` ASC,`id` ASC [0.001228s/0.094741s=1.30%]
- 20/52 . SELECT * FROM `product` WHERE ( `status` = 'up' AND `deletetime` IS NULL AND `id` IN (4,3,2,1) ) AND `product`.`deletetime` IS NULL ORDER BY field(id,4,3,2,1) LIMIT 0,15 [0.001221s/0.094741s=1.29%]
- 21/52 . SELECT COUNT(*) AS tp_count FROM `product` WHERE ( `status` = 'up' AND `deletetime` IS NULL AND `id` IN (4,3,2,1) ) AND `product`.`deletetime` IS NULL LIMIT 1 [0.001210s/0.094741s=1.28%]
- 22/52 . SELECT `id`,`name`,`template`,`version`,`type`,`remark`,`weigh`,`createtime`,`updatetime`,`deletetime` FROM `themes` WHERE ( `type` = 'release' ) AND `themes`.`deletetime` IS NULL LIMIT 1 [0.001124s/0.094741s=1.19%]
- 23/52 . SELECT `value` FROM `config` WHERE `name` = 'customer_login_config' LIMIT 1 [0.001119s/0.094741s=1.18%]
- 24/52 . SELECT * FROM `custom_activity_relation` WHERE `product_id` = 4 LIMIT 1 [0.001099s/0.094741s=1.16%]
- 25/52 . SELECT * FROM `product_sku_price` WHERE ( `product_id` IN (5,4,3,2,1) ) AND `product_sku_price`.`deletetime` IS NULL ORDER BY `weigh` ASC,`id` ASC [0.001093s/0.094741s=1.15%]
- 26/52 . 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.001085s/0.094741s=1.15%]
- 27/52 . SELECT `id` FROM `custom_activity` WHERE `id` = 2 AND `status` = '1' LIMIT 1 [0.001055s/0.094741s=1.11%]
- 28/52 . set session sql_mode='STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION' [0.001035s/0.094741s=1.09%]
- 29/52 . SELECT `value` FROM `config` WHERE `name` = 'klaviyo_config' LIMIT 1 [0.001017s/0.094741s=1.07%]
- 30/52 . SELECT COUNT(*) AS tp_count FROM `app_center` WHERE `name` = 'salesmartly' AND `is_installed` = 1 LIMIT 1 [0.001016s/0.094741s=1.07%]
- 31/52 . SELECT * FROM `discuss` WHERE ( `status` = 'show' AND `product_id` IN (4,3,2,1) ) AND `discuss`.`deletetime` IS NULL [0.001008s/0.094741s=1.06%]
- 32/52 . SELECT * FROM `custom_activity_relation` WHERE `product_id` = 5 LIMIT 1 [0.000979s/0.094741s=1.03%]
- 33/52 . SELECT * FROM `custom_activity_relation` WHERE `product_id` = 4 LIMIT 1 [0.000965s/0.094741s=1.02%]
- 34/52 . SELECT * FROM `custom_activity_relation` WHERE `product_id` = 4 LIMIT 1 [0.000941s/0.094741s=0.99%]
- 35/52 . set time_zone = '+08:00' [0.000939s/0.094741s=0.99%]
- 36/52 . SELECT `id` FROM `custom_activity` WHERE `id` = 1 AND `status` = '1' LIMIT 1 [0.000936s/0.094741s=0.99%]
- 37/52 . SELECT * FROM `custom_activity_relation` WHERE `product_id` = 4 LIMIT 1 [0.000926s/0.094741s=0.98%]
- 38/52 . SELECT * FROM `activity` WHERE ( ( 1775900576 > starttime && 1775900576 < endtime ) ) AND `activity`.`deletetime` IS NULL ORDER BY `starttime` ASC LIMIT 30 [0.000917s/0.094741s=0.97%]
- 39/52 . SELECT `id` FROM `custom_activity` WHERE `id` = 1 AND `status` = '1' LIMIT 1 [0.000913s/0.094741s=0.96%]
- 40/52 . SELECT `id` FROM `custom_activity` WHERE `id` = 2 AND `status` = '1' LIMIT 1 [0.000908s/0.094741s=0.96%]
- 41/52 . SELECT `id` FROM `custom_activity` WHERE `id` = 1 AND `status` = '1' LIMIT 1 [0.000907s/0.094741s=0.96%]
- 42/52 . select p.id,title ,price from product_category_relation as pcr left join product as p on p.id = pcr.product_id where pcr.category_id = 1
and p.status = "up" and p.deletetime is null limit 40 [0.000907s/0.094741s=0.96%]
- 43/52 . 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.000892s/0.094741s=0.94%]
- 44/52 . SELECT * FROM `themes_menu_item` WHERE `themes_menu_item`.`deletetime` IS NULL [0.000886s/0.094741s=0.94%]
- 45/52 . SELECT `id` FROM `custom_activity` WHERE `id` = 1 AND `status` = '1' LIMIT 1 [0.000886s/0.094741s=0.94%]
- 46/52 . SELECT * FROM `custom_activity_relation` WHERE `product_id` = 5 LIMIT 1 [0.000869s/0.094741s=0.92%]
- 47/52 . set session sql_mode='STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION' [0.000863s/0.094741s=0.91%]
- 48/52 . SELECT `id` FROM `custom_activity` WHERE `id` = 2 AND `status` = '1' LIMIT 1 [0.000863s/0.094741s=0.91%]
- 49/52 . SELECT `value` FROM `config` WHERE `name` = 'product_review' LIMIT 1 [0.000854s/0.094741s=0.90%]
- 50/52 . 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.000832s/0.094741s=0.88%]
- 51/52 . SELECT `id` FROM `category` WHERE `path` = 'all' LIMIT 1 [0.000807s/0.094741s=0.85%]
- 52/52 . set session sql_mode='STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION' [0.000803s/0.094741s=0.85%]
- 1/7. SELECT * FROM `custom_activity_relation` WHERE `product_id` = 4 LIMIT 1 [5 times, 0.005453s/0.094741s=5.76%]
- 2/7. SELECT `id` FROM `custom_activity` WHERE `id` = 1 AND `status` = '1' LIMIT 1 [5 times, 0.006853s/0.094741s=7.23%]
- 3/7. SELECT `id` FROM `custom_activity` WHERE `id` = 2 AND `status` = '1' LIMIT 1 [3 times, 0.002826s/0.094741s=2.98%]
- 4/7. SELECT * FROM `custom_activity_relation` WHERE `product_id` = 5 LIMIT 1 [3 times, 0.003184s/0.094741s=3.36%]
- 5/7. 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 [3 times, 0.002809s/0.094741s=2.96%]
- 6/7. set session sql_mode='STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION' [3 times, 0.002701s/0.094741s=2.85%]
- 7/7. SELECT @@session.sql_mode [2 times, 0.004673s/0.094741s=4.93%]