基本
文件
流程
慢流程
错误
SQL
慢sql
重复sql
调试
- 请求信息 : 2025-03-01 23:04:56 HTTP/1.1 GET : demoarise.shoppaas.com/category/all
- 运行时间 : 0.127248s [ 吞吐率:7.86req/s ] 内存消耗:2,514.96kb 文件加载:250
- 查询信息 : [耗时:0.054863s/0.127248 43.12% ] 39 queries ,7 writes
- 缓存信息 : 21 reads,3 writes
- 配置加载 : 83
- 会话信息 : SESSION_ID=605jkp2f8ovmv626qncm6q7t4o
- [ BEHAVIOR ] Run Closure @app_init [ RunTime:0.000012s ]
- [ CACHE ] INIT app\common\library\cache\driver\Redis
- [ BEHAVIOR ] Run \addons\aws\Aws @app_init [ RunTime:0.000294s ]
- [ BEHAVIOR ] Run \addons\listener\Listener @app_init [ RunTime:0.000046s ]
- [ BEHAVIOR ] Run Closure @app_init [ RunTime:0.000055s ]
- [ BEHAVIOR ] Run app\common\behavior\Common @app_dispatch [ RunTime:0.000062s ]
- [ ROUTE ] array (
'type' => 'module',
'module' =>
array (
0 => 'index',
1 => 'product',
2 => 'lists',
),
'convert' => false,
)
- [ HEADER ] array (
'x-forwarded-proto' => 'https',
'x-forwarded-host' => 'demoarise.shoppaas.com',
'x-forwarded-for' => '18.117.73.46',
'referer' => 'http://demoarise.shoppaas.com/category/all',
'cookie' => 'care_did=e3c4b9db-e0fe-4c4f-b659-5ee1afa3347c',
'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' => 'demoarise.shoppaas.com',
'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.002007s ]
- [ BEHAVIOR ] Run \addons\aws\Aws @module_init [ RunTime:0.000026s ]
- [ DB ] INIT mysql
- [ BEHAVIOR ] Run \addons\aws\Aws @upload_config_init [ RunTime:0.000032s ]
- [ BEHAVIOR ] Run \addons\nkeditor\Nkeditor @config_init [ RunTime:0.000090s ]
- [ SESSION ] INIT array (
'id' => '',
'var_session_id' => '',
'session_name' => 'shoppaas_1721902879172:',
'type' => 'redis',
'host' => '172.31.98.126',
'port' => '6379',
'password' => '',
'select' => 6,
'auto_start' => true,
)
- [ BEHAVIOR ] Run addons\visituser\Hook @visit_record [ RunTime:0.013401s ]
- [ RUN ] app\index\controller\Product->lists[ /wwwroot/application/index/controller/Product.php ]
- [ VIEW ] /wwwroot/template/arise/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\googlepixel\Hook @global_header [ RunTime:0.000926s ]
- [ BEHAVIOR ] Run addons\pixel\Hook @pixels [ RunTime:0.000049s ]
- [ BEHAVIOR ] Run addons\facebookpixel\Hook @pixels [ RunTime:0.000870s ]
- [ BEHAVIOR ] Run addons\snapchatpixel\Hook @pixels [ RunTime:0.000978s ]
- [ BEHAVIOR ] Run addons\googlepixel\Hook @pixels [ RunTime:0.000008s ]
- [ BEHAVIOR ] Run addons\tiktokpixel\Hook @pixels [ RunTime:0.000946s ]
- [ BEHAVIOR ] Run addons\featuredproduct\Hook @global_content_bottom [ RunTime:0.000722s ]
- [ BEHAVIOR ] Run addons\marketingnotify\Hook @global_footer [ RunTime:0.000939s ]
- [ BEHAVIOR ] Run addons\marketingcookie\Hook @global_footer [ RunTime:0.001007s ]
- [ BEHAVIOR ] Run addons\marketingpopup\Hook @global_footer [ RunTime:0.000680s ]
- [ BEHAVIOR ] Run addons\visituser\Hook @response_send [ RunTime:0.001481s ]
- 1/21 . [ BEHAVIOR ] Run addons\visituser\Hook @visit_record [ RunTime:0.013401s ] [0.013401s/0.024631s=54.41%]
- 2/21 . [ BEHAVIOR ] Run app\common\behavior\Common @module_init [ RunTime:0.002007s ] [0.002007s/0.024631s=8.15%]
- 3/21 . [ BEHAVIOR ] Run addons\visituser\Hook @response_send [ RunTime:0.001481s ] [0.001481s/0.024631s=6.01%]
- 4/21 . [ BEHAVIOR ] Run addons\marketingcookie\Hook @global_footer [ RunTime:0.001007s ] [0.001007s/0.024631s=4.09%]
- 5/21 . [ BEHAVIOR ] Run addons\snapchatpixel\Hook @pixels [ RunTime:0.000978s ] [0.000978s/0.024631s=3.97%]
- 6/21 . [ BEHAVIOR ] Run addons\tiktokpixel\Hook @pixels [ RunTime:0.000946s ] [0.000946s/0.024631s=3.84%]
- 7/21 . [ BEHAVIOR ] Run addons\marketingnotify\Hook @global_footer [ RunTime:0.000939s ] [0.000939s/0.024631s=3.81%]
- 8/21 . [ BEHAVIOR ] Run addons\googlepixel\Hook @global_header [ RunTime:0.000926s ] [0.000926s/0.024631s=3.76%]
- 9/21 . [ BEHAVIOR ] Run addons\facebookpixel\Hook @pixels [ RunTime:0.000870s ] [0.000870s/0.024631s=3.53%]
- 10/21 . [ BEHAVIOR ] Run addons\featuredproduct\Hook @global_content_bottom [ RunTime:0.000722s ] [0.000722s/0.024631s=2.93%]
- 11/21 . [ BEHAVIOR ] Run addons\marketingpopup\Hook @global_footer [ RunTime:0.000680s ] [0.000680s/0.024631s=2.76%]
- 12/21 . [ BEHAVIOR ] Run \addons\aws\Aws @app_init [ RunTime:0.000294s ] [0.000294s/0.024631s=1.19%]
- 13/21 . [ BEHAVIOR ] Run \addons\nkeditor\Nkeditor @config_init [ RunTime:0.000090s ] [0.000090s/0.024631s=0.37%]
- 14/21 . [ BEHAVIOR ] Run app\common\behavior\Common @app_dispatch [ RunTime:0.000062s ] [0.000062s/0.024631s=0.25%]
- 15/21 . [ BEHAVIOR ] Run Closure @app_init [ RunTime:0.000055s ] [0.000055s/0.024631s=0.22%]
- 16/21 . [ BEHAVIOR ] Run addons\pixel\Hook @pixels [ RunTime:0.000049s ] [0.000049s/0.024631s=0.20%]
- 17/21 . [ BEHAVIOR ] Run \addons\listener\Listener @app_init [ RunTime:0.000046s ] [0.000046s/0.024631s=0.19%]
- 18/21 . [ BEHAVIOR ] Run \addons\aws\Aws @upload_config_init [ RunTime:0.000032s ] [0.000032s/0.024631s=0.13%]
- 19/21 . [ BEHAVIOR ] Run \addons\aws\Aws @module_init [ RunTime:0.000026s ] [0.000026s/0.024631s=0.11%]
- 20/21 . [ BEHAVIOR ] Run Closure @app_init [ RunTime:0.000012s ] [0.000012s/0.024631s=0.05%]
- 21/21 . [ BEHAVIOR ] Run addons\googlepixel\Hook @pixels [ RunTime:0.000008s ] [0.000008s/0.024631s=0.03%]
- [ DB ] CONNECT:[ UseTime:0.001365s ] mysql:host=172.31.96.182;port=3306;dbname=shoppaas_1721902879172;charset=utf8mb4
- [ SQL ] SHOW COLUMNS FROM `app_center` [ RunTime:0.001311s ]
- [ SQL ] SELECT COUNT(*) AS tp_count FROM `app_center` WHERE `name` = 'product_topic' AND `is_installed` = 1 LIMIT 1 [ RunTime:0.001061s ]
- [ SQL ] SHOW COLUMNS FROM `payment` [ RunTime:0.001519s ]
- [ SQL ] SELECT * FROM `payment` WHERE `status` = '1' ORDER BY `weigh` DESC,`id` ASC [ RunTime:0.001016s ]
- [ SQL ] SHOW COLUMNS FROM `config` [ RunTime:0.001405s ]
- [ SQL ] SELECT `value` FROM `config` WHERE `name` = 'lang_auto_detect' LIMIT 1 [ RunTime:0.000970s ]
- [ SQL ] set time_zone = '+08:00' [ RunTime:0.000767s ]
- [ SQL ] SELECT `value` FROM `config` WHERE ( name = 'multiCurrencySwitch' ) LIMIT 1 [ RunTime:0.000831s ]
- [ SQL ] SELECT `value` FROM `config` WHERE ( name = 'byIpSwitch' ) LIMIT 1 [ RunTime:0.000850s ]
- [ SQL ] SHOW COLUMNS FROM `cart` [ RunTime:0.001303s ]
- [ SQL ] SHOW COLUMNS FROM `product` [ RunTime:0.001388s ]
- [ SQL ] UPDATE `cart` SET `deletetime`=1740841496 WHERE ( NOT EXISTS ( SELECT * FROM `product` WHERE ( product.id=cart.product_id ) ) AND `user_id` = 0 AND `session_id` = '605jkp2f8ovmv626qncm6q7t4o' AND `createtime` > 1740582296 ) AND `cart`.`deletetime` IS NULL [ RunTime:0.000940s ]
- [ SQL ] SHOW COLUMNS FROM `activity` [ RunTime:0.001261s ]
- [ SQL ] SELECT @@session.sql_mode [ RunTime:0.000801s ]
- [ SQL ] set session sql_mode='STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION' [ RunTime:0.000759s ]
- [ SQL ] SELECT * FROM `cart` LEFT JOIN ( SELECT type as activity_type,id as activity_id,`product_ids` FROM `activity` WHERE ( `type` IN ('seckill') ) AND `activity`.`deletetime` IS NULL ) `act` ON find_in_set(cart.product_id, product_ids) WHERE ( `user_id` = 0 AND `session_id` = '605jkp2f8ovmv626qncm6q7t4o' AND `store_id` = 0 ) AND `cart`.`deletetime` IS NULL GROUP BY `id` ORDER BY `createtime` DESC [ RunTime:0.001314s ]
- [ SQL ] set session sql_mode='STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION' [ RunTime:0.000762s ]
- [ SQL ] SELECT `value` FROM `config` WHERE `name` = 'customer_login_config' LIMIT 1 [ RunTime:0.000832s ]
- [ SQL ] SHOW COLUMNS FROM `visit_user` [ RunTime:0.001314s ]
- [ SQL ] SELECT * FROM `visit_user` WHERE `visit_code` = '017152b7863f84e54631ac61d7ee5d5d' LIMIT 1 [ RunTime:0.000897s ]
- [ SQL ] SHOW COLUMNS FROM `visit_log` [ RunTime:0.001304s ]
- [ SQL ] SELECT * FROM `visit_log` WHERE ( `visit_session` = 'ab5ea1e330a9788b07d13ac0d721026b' ) AND `visit_log`.`deletetime` IS NULL LIMIT 1 [ RunTime:0.003823s ]
- [ SQL ] SELECT COUNT(*) AS tp_count FROM `app_center` WHERE `name` = 'access_control' AND `is_installed` = 1 LIMIT 1 [ RunTime:0.001019s ]
- [ SQL ] SELECT @@session.sql_mode [ RunTime:0.000825s ]
- [ SQL ] set session sql_mode='STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION' [ RunTime:0.000764s ]
- [ SQL ] SHOW COLUMNS FROM `activity_product_sku_price` [ RunTime:0.002585s ]
- [ 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.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 < 1740841496 and b.endtime > 1740841496 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(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.001841s ]
- [ SQL ] SHOW COLUMNS FROM `currency` [ RunTime:0.001374s ]
- [ 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 (31,30,29,28,27,26,25,24,23,22,21,20,19,18,17,16,15,14,13,12,11,10,9,8,7,6) group by binary(p.name), binary(p1.name); [ RunTime:0.002422s ]
- [ SQL ] SELECT @@session.sql_mode [ RunTime:0.000732s ]
- [ SQL ] set session sql_mode='STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION' [ RunTime:0.000696s ]
- [ 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 < 1740841496 and b.endtime > 1740841496 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(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.001186s ]
- [ 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.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 < 1740841496 and b.endtime > 1740841496 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(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.001399s ]
- [ SQL ] SHOW COLUMNS FROM `discuss` [ RunTime:0.001281s ]
- [ SQL ] SELECT * FROM `discuss` WHERE ( `status` = 'show' AND `product_id` IN (31,30,29,28,27,26,25,24,23,22,21,20) ) AND `discuss`.`deletetime` IS NULL [ RunTime:0.000843s ]
- [ SQL ] SHOW COLUMNS FROM `product_sku_price` [ RunTime:0.001247s ]
- [ SQL ] SELECT * FROM `product_sku_price` WHERE ( `product_id` IN (31,30,29,28,27,26,25,24,23,22,21,20) ) AND `product_sku_price`.`deletetime` IS NULL ORDER BY `weigh` ASC,`id` ASC [ RunTime:0.000924s ]
- [ SQL ] SELECT * FROM `activity` WHERE ( ( 1740841496 > starttime && 1740841496 < endtime ) ) AND `activity`.`deletetime` IS NULL ORDER BY `starttime` ASC LIMIT 30 [ RunTime:0.000807s ]
- [ SQL ] set session sql_mode='STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION' [ RunTime:0.000717s ]
- [ SQL ] SELECT `value` FROM `config` WHERE `name` = 'product_review' LIMIT 1 [ RunTime:0.000743s ]
- [ SQL ] SHOW COLUMNS FROM `themes_lang` [ RunTime:0.001245s ]
- [ 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.000805s ]
- [ SQL ] SHOW COLUMNS FROM `themes_menu_item` [ RunTime:0.001256s ]
- [ SQL ] SELECT * FROM `themes_menu_item` WHERE `themes_menu_item`.`deletetime` IS NULL [ RunTime:0.000802s ]
- [ 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.000770s ]
- [ 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.000787s ]
- 1/47 . SELECT * FROM `visit_log` WHERE ( `visit_session` = 'ab5ea1e330a9788b07d13ac0d721026b' ) AND `visit_log`.`deletetime` IS NULL LIMIT 1 [0.003823s/0.054863s=6.97%]
- 2/47 . SHOW COLUMNS FROM `activity_product_sku_price` [0.002585s/0.054863s=4.71%]
- 3/47 . 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 (31,30,29,28,27,26,25,24,23,22,21,20,19,18,17,16,15,14,13,12,11,10,9,8,7,6) group by binary(p.name), binary(p1.name); [0.002422s/0.054863s=4.41%]
- 4/47 . 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.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 < 1740841496 and b.endtime > 1740841496 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(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.001841s/0.054863s=3.36%]
- 5/47 . SHOW COLUMNS FROM `payment` [0.001519s/0.054863s=2.77%]
- 6/47 . SHOW COLUMNS FROM `config` [0.001405s/0.054863s=2.56%]
- 7/47 . 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.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 < 1740841496 and b.endtime > 1740841496 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(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.001399s/0.054863s=2.55%]
- 8/47 . SHOW COLUMNS FROM `product` [0.001388s/0.054863s=2.53%]
- 9/47 . SHOW COLUMNS FROM `currency` [0.001374s/0.054863s=2.50%]
- 10/47 . CONNECT:[ UseTime:0.001365s ] mysql:host=172.31.96.182;port=3306;dbname=shoppaas_1721902879172;charset=utf8mb4 [0.001365s/0.054863s=2.49%]
- 11/47 . SHOW COLUMNS FROM `visit_user` [0.001314s/0.054863s=2.40%]
- 12/47 . SELECT * FROM `cart` LEFT JOIN ( SELECT type as activity_type,id as activity_id,`product_ids` FROM `activity` WHERE ( `type` IN ('seckill') ) AND `activity`.`deletetime` IS NULL ) `act` ON find_in_set(cart.product_id, product_ids) WHERE ( `user_id` = 0 AND `session_id` = '605jkp2f8ovmv626qncm6q7t4o' AND `store_id` = 0 ) AND `cart`.`deletetime` IS NULL GROUP BY `id` ORDER BY `createtime` DESC [0.001314s/0.054863s=2.40%]
- 13/47 . SHOW COLUMNS FROM `app_center` [0.001311s/0.054863s=2.39%]
- 14/47 . SHOW COLUMNS FROM `visit_log` [0.001304s/0.054863s=2.38%]
- 15/47 . SHOW COLUMNS FROM `cart` [0.001303s/0.054863s=2.38%]
- 16/47 . SHOW COLUMNS FROM `discuss` [0.001281s/0.054863s=2.33%]
- 17/47 . SHOW COLUMNS FROM `activity` [0.001261s/0.054863s=2.30%]
- 18/47 . SHOW COLUMNS FROM `themes_menu_item` [0.001256s/0.054863s=2.29%]
- 19/47 . SHOW COLUMNS FROM `product_sku_price` [0.001247s/0.054863s=2.27%]
- 20/47 . SHOW COLUMNS FROM `themes_lang` [0.001245s/0.054863s=2.27%]
- 21/47 . 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 < 1740841496 and b.endtime > 1740841496 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(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.001186s/0.054863s=2.16%]
- 22/47 . SELECT COUNT(*) AS tp_count FROM `app_center` WHERE `name` = 'product_topic' AND `is_installed` = 1 LIMIT 1 [0.001061s/0.054863s=1.93%]
- 23/47 . SELECT COUNT(*) AS tp_count FROM `app_center` WHERE `name` = 'access_control' AND `is_installed` = 1 LIMIT 1 [0.001019s/0.054863s=1.86%]
- 24/47 . SELECT * FROM `payment` WHERE `status` = '1' ORDER BY `weigh` DESC,`id` ASC [0.001016s/0.054863s=1.85%]
- 25/47 . SELECT `value` FROM `config` WHERE `name` = 'lang_auto_detect' LIMIT 1 [0.000970s/0.054863s=1.77%]
- 26/47 . UPDATE `cart` SET `deletetime`=1740841496 WHERE ( NOT EXISTS ( SELECT * FROM `product` WHERE ( product.id=cart.product_id ) ) AND `user_id` = 0 AND `session_id` = '605jkp2f8ovmv626qncm6q7t4o' AND `createtime` > 1740582296 ) AND `cart`.`deletetime` IS NULL [0.000940s/0.054863s=1.71%]
- 27/47 . SELECT * FROM `product_sku_price` WHERE ( `product_id` IN (31,30,29,28,27,26,25,24,23,22,21,20) ) AND `product_sku_price`.`deletetime` IS NULL ORDER BY `weigh` ASC,`id` ASC [0.000924s/0.054863s=1.68%]
- 28/47 . SELECT * FROM `visit_user` WHERE `visit_code` = '017152b7863f84e54631ac61d7ee5d5d' LIMIT 1 [0.000897s/0.054863s=1.63%]
- 29/47 . SELECT `value` FROM `config` WHERE ( name = 'byIpSwitch' ) LIMIT 1 [0.000850s/0.054863s=1.55%]
- 30/47 . SELECT * FROM `discuss` WHERE ( `status` = 'show' AND `product_id` IN (31,30,29,28,27,26,25,24,23,22,21,20) ) AND `discuss`.`deletetime` IS NULL [0.000843s/0.054863s=1.54%]
- 31/47 . SELECT `value` FROM `config` WHERE `name` = 'customer_login_config' LIMIT 1 [0.000832s/0.054863s=1.52%]
- 32/47 . SELECT `value` FROM `config` WHERE ( name = 'multiCurrencySwitch' ) LIMIT 1 [0.000831s/0.054863s=1.51%]
- 33/47 . SELECT @@session.sql_mode [0.000825s/0.054863s=1.50%]
- 34/47 . SELECT * FROM `activity` WHERE ( ( 1740841496 > starttime && 1740841496 < endtime ) ) AND `activity`.`deletetime` IS NULL ORDER BY `starttime` ASC LIMIT 30 [0.000807s/0.054863s=1.47%]
- 35/47 . 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.000805s/0.054863s=1.47%]
- 36/47 . SELECT * FROM `themes_menu_item` WHERE `themes_menu_item`.`deletetime` IS NULL [0.000802s/0.054863s=1.46%]
- 37/47 . SELECT @@session.sql_mode [0.000801s/0.054863s=1.46%]
- 38/47 . 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.000787s/0.054863s=1.43%]
- 39/47 . 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.000770s/0.054863s=1.40%]
- 40/47 . set time_zone = '+08:00' [0.000767s/0.054863s=1.40%]
- 41/47 . set session sql_mode='STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION' [0.000764s/0.054863s=1.39%]
- 42/47 . set session sql_mode='STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION' [0.000762s/0.054863s=1.39%]
- 43/47 . set session sql_mode='STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION' [0.000759s/0.054863s=1.38%]
- 44/47 . SELECT `value` FROM `config` WHERE `name` = 'product_review' LIMIT 1 [0.000743s/0.054863s=1.35%]
- 45/47 . SELECT @@session.sql_mode [0.000732s/0.054863s=1.33%]
- 46/47 . set session sql_mode='STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION' [0.000717s/0.054863s=1.31%]
- 47/47 . set session sql_mode='STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION' [0.000696s/0.054863s=1.27%]
- 1/3. set session sql_mode='STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION' [5 times, 0.003698s/0.054863s=6.74%]
- 2/3. 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.002362s/0.054863s=4.31%]
- 3/3. SELECT @@session.sql_mode [3 times, 0.002358s/0.054863s=4.30%]
- generateVisitCode:017152b7863f84e54631ac61d7ee5d5d
- 发布普通任务:shoppaas_1721902879172:-addons-job-job-VisitUser@requestJob:14686