基本
文件
流程
慢流程
错误
SQL
慢sql
重复sql
调试
- 请求信息 : 2026-04-03 04:11:15 HTTP/1.1 GET : pengdong18881.pdtest.saascdn.co/all?page=1
- 运行时间 : 0.212996s [ 吞吐率:4.69req/s ] 内存消耗:3,122.97kb 文件加载:266
- 查询信息 : [耗时:0.063733s/0.212996 29.92% ] 42 queries ,4 writes
- 缓存信息 : 27 reads,1 writes
- 配置加载 : 84
- 会话信息 : SESSION_ID=2vsf5ujppqkus3qb281d8d6qb2
- [ BEHAVIOR ] Run Closure @app_init [ RunTime:0.000017s ]
- [ CACHE ] INIT app\common\library\cache\driver\Redis
- [ BEHAVIOR ] Run \addons\aws\Aws @app_init [ RunTime:0.000847s ]
- [ BEHAVIOR ] Run \addons\listener\Listener @app_init [ RunTime:0.000168s ]
- [ BEHAVIOR ] Run Closure @app_init [ RunTime:0.000184s ]
- [ BEHAVIOR ] Run app\common\behavior\Common @app_dispatch [ RunTime:0.000190s ]
- [ ROUTE ] array (
'type' => 'module',
'module' =>
array (
0 => 'index',
1 => 'product',
2 => 'lists',
),
'convert' => false,
)
- [ HEADER ] array (
'x-forwarded-proto' => 'https',
'x-forwarded-host' => 'pengdong18881.pdtest.saascdn.co',
'x-forwarded-for' => '216.73.216.84',
'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' => 'pengdong18881.pdtest.saascdn.co',
'content-length' => '',
'content-type' => '',
)
- [ PARAM ] array (
'page' => '1',
'path' => 'all',
)
- [ LANG ] /wwwroot/public/../application/index/lang/en-us.php
- [ BEHAVIOR ] Run app\common\behavior\Common @module_init [ RunTime:0.010596s ]
- [ BEHAVIOR ] Run \addons\aws\Aws @module_init [ RunTime:0.000045s ]
- [ DB ] INIT mysql
- [ BEHAVIOR ] Run \addons\aws\Aws @upload_config_init [ RunTime:0.000043s ]
- [ BEHAVIOR ] Run \addons\nkeditor\Nkeditor @config_init [ RunTime:0.000075s ]
- [ SESSION ] INIT array (
'id' => '',
'var_session_id' => '',
'session_name' => 'shoppaas_1704420534302:',
'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/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\pixel\Hook @pixels [ RunTime:0.003171s ]
- [ BEHAVIOR ] Run addons\facebookpixel\Hook @pixels [ RunTime:0.001791s ]
- [ BEHAVIOR ] Run addons\snapchatpixel\Hook @pixels [ RunTime:0.001679s ]
- [ BEHAVIOR ] Run addons\googlepixel\Hook @pixels [ RunTime:0.001713s ]
- [ BEHAVIOR ] Run addons\tiktokpixel\Hook @pixels [ RunTime:0.001755s ]
- [ BEHAVIOR ] Run addons\mediago\Hook @pixels [ RunTime:0.001737s ]
- [ BEHAVIOR ] Run addons\taboolapixel\Hook @pixels [ RunTime:0.001668s ]
- [ BEHAVIOR ] Run addons\klaviyopixel\Hook @pixels [ RunTime:0.001379s ]
- [ BEHAVIOR ] Run addons\aiservices\Hook @pixels [ RunTime:0.001118s ]
- [ VIEW ] /wwwroot/addons/productrating/view/product_rating.html [ array (
0 => 'config_site_version',
1 => 'data',
2 => 'data_json',
) ]
- [ BEHAVIOR ] Run addons\productrating\Hook @product_rating [ RunTime:0.002319s ]
- [ VIEW ] /wwwroot/template/arise/../arise/template/product_featured.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',
) ]
- [ VIEW ] /wwwroot/addons/productrating/view/product_rating.html [ array (
0 => 'config_site_version',
1 => 'data',
2 => 'data_json',
) ]
- [ BEHAVIOR ] Run addons\productrating\Hook @product_rating [ RunTime:0.000423s ]
- [ BEHAVIOR ] Run addons\featuredproduct\Hook @global_content_bottom [ RunTime:0.013088s ]
- [ BEHAVIOR ] Run addons\marketingnotify\Hook @global_footer [ RunTime:0.001785s ]
- [ BEHAVIOR ] Run addons\marketingcookie\Hook @global_footer [ RunTime:0.001788s ]
- [ BEHAVIOR ] Run addons\marketingpopup\Hook @global_footer [ RunTime:0.001030s ]
- 1/24 . [ BEHAVIOR ] Run addons\featuredproduct\Hook @global_content_bottom [ RunTime:0.013088s ] [0.013088s/0.048609s=26.93%]
- 2/24 . [ BEHAVIOR ] Run app\common\behavior\Common @module_init [ RunTime:0.010596s ] [0.010596s/0.048609s=21.80%]
- 3/24 . [ BEHAVIOR ] Run addons\pixel\Hook @pixels [ RunTime:0.003171s ] [0.003171s/0.048609s=6.52%]
- 4/24 . [ BEHAVIOR ] Run addons\productrating\Hook @product_rating [ RunTime:0.002319s ] [0.002319s/0.048609s=4.77%]
- 5/24 . [ BEHAVIOR ] Run addons\facebookpixel\Hook @pixels [ RunTime:0.001791s ] [0.001791s/0.048609s=3.68%]
- 6/24 . [ BEHAVIOR ] Run addons\marketingcookie\Hook @global_footer [ RunTime:0.001788s ] [0.001788s/0.048609s=3.68%]
- 7/24 . [ BEHAVIOR ] Run addons\marketingnotify\Hook @global_footer [ RunTime:0.001785s ] [0.001785s/0.048609s=3.67%]
- 8/24 . [ BEHAVIOR ] Run addons\tiktokpixel\Hook @pixels [ RunTime:0.001755s ] [0.001755s/0.048609s=3.61%]
- 9/24 . [ BEHAVIOR ] Run addons\mediago\Hook @pixels [ RunTime:0.001737s ] [0.001737s/0.048609s=3.57%]
- 10/24 . [ BEHAVIOR ] Run addons\googlepixel\Hook @pixels [ RunTime:0.001713s ] [0.001713s/0.048609s=3.52%]
- 11/24 . [ BEHAVIOR ] Run addons\snapchatpixel\Hook @pixels [ RunTime:0.001679s ] [0.001679s/0.048609s=3.45%]
- 12/24 . [ BEHAVIOR ] Run addons\taboolapixel\Hook @pixels [ RunTime:0.001668s ] [0.001668s/0.048609s=3.43%]
- 13/24 . [ BEHAVIOR ] Run addons\klaviyopixel\Hook @pixels [ RunTime:0.001379s ] [0.001379s/0.048609s=2.84%]
- 14/24 . [ BEHAVIOR ] Run addons\aiservices\Hook @pixels [ RunTime:0.001118s ] [0.001118s/0.048609s=2.30%]
- 15/24 . [ BEHAVIOR ] Run addons\marketingpopup\Hook @global_footer [ RunTime:0.001030s ] [0.001030s/0.048609s=2.12%]
- 16/24 . [ BEHAVIOR ] Run \addons\aws\Aws @app_init [ RunTime:0.000847s ] [0.000847s/0.048609s=1.74%]
- 17/24 . [ BEHAVIOR ] Run addons\productrating\Hook @product_rating [ RunTime:0.000423s ] [0.000423s/0.048609s=0.87%]
- 18/24 . [ BEHAVIOR ] Run app\common\behavior\Common @app_dispatch [ RunTime:0.000190s ] [0.000190s/0.048609s=0.39%]
- 19/24 . [ BEHAVIOR ] Run Closure @app_init [ RunTime:0.000184s ] [0.000184s/0.048609s=0.38%]
- 20/24 . [ BEHAVIOR ] Run \addons\listener\Listener @app_init [ RunTime:0.000168s ] [0.000168s/0.048609s=0.35%]
- 21/24 . [ BEHAVIOR ] Run \addons\nkeditor\Nkeditor @config_init [ RunTime:0.000075s ] [0.000075s/0.048609s=0.15%]
- 22/24 . [ BEHAVIOR ] Run \addons\aws\Aws @module_init [ RunTime:0.000045s ] [0.000045s/0.048609s=0.09%]
- 23/24 . [ BEHAVIOR ] Run \addons\aws\Aws @upload_config_init [ RunTime:0.000043s ] [0.000043s/0.048609s=0.09%]
- 24/24 . [ BEHAVIOR ] Run Closure @app_init [ RunTime:0.000017s ] [0.000017s/0.048609s=0.03%]
- [ DB ] CONNECT:[ UseTime:0.002400s ] mysql:host=database-test2.cb81pdkxodkj.us-east-1.rds.amazonaws.com:3306;port=3306;dbname=shoppaas_1704420534302;charset=utf8mb4
- [ SQL ] SELECT COUNT(*) AS tp_count FROM `app_center` WHERE `name` = 'product_topic' AND `is_installed` = 1 LIMIT 1 [ RunTime:0.001235s ]
- [ SQL ] SELECT COUNT(*) AS tp_count FROM `app_center` WHERE `name` = 'access_control' AND `is_installed` = 1 LIMIT 1 [ RunTime:0.001083s ]
- [ SQL ] SELECT * FROM `payment` WHERE `status` = '1' ORDER BY `weigh` DESC,`id` ASC [ RunTime:0.001260s ]
- [ SQL ] SELECT `value` FROM `config` WHERE `name` = 'channel_google' LIMIT 1 [ RunTime:0.000940s ]
- [ SQL ] SELECT `value` FROM `config` WHERE `name` = 'lang_auto_detect' LIMIT 1 [ RunTime:0.001526s ]
- [ SQL ] set time_zone = '+08:00' [ RunTime:0.002164s ]
- [ SQL ] SELECT `value` FROM `config` WHERE ( name = 'multiCurrencySwitch' ) LIMIT 1 [ RunTime:0.001230s ]
- [ SQL ] SELECT `value` FROM `config` WHERE ( name = 'byIpSwitch' ) LIMIT 1 [ RunTime:0.001042s ]
- [ SQL ] SELECT `value` FROM `config` WHERE `name` = 'customer_login_config' LIMIT 1 [ RunTime:0.001117s ]
- [ SQL ] SELECT @@session.sql_mode [ RunTime:0.000969s ]
- [ SQL ] set session sql_mode='STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION' [ RunTime:0.001602s ]
- [ 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 < 1775160675 and b.endtime > 1775160675 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(2, category_ids) ) OR ( find_in_set(1, category_ids) ) ) ) AND `p`.`deletetime` IS NULL ORDER BY weigh desc, id desc [ RunTime:0.005001s ]
- [ 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 (450,448,447,446,445,444,443,442,441,440,60,3,2) group by binary(p.name), binary(p1.name); [ RunTime:0.003868s ]
- [ SQL ] SELECT @@session.sql_mode [ RunTime:0.000824s ]
- [ SQL ] set session sql_mode='STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION' [ RunTime:0.000801s ]
- [ 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 < 1775160675 and b.endtime > 1775160675 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(2, category_ids) ) OR ( find_in_set(1, category_ids) ) ) ) AND `p`.`deletetime` IS NULL LIMIT 1 [ RunTime:0.001574s ]
- [ 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 < 1775160675 and b.endtime > 1775160675 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(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.002027s ]
- [ SQL ] SELECT * FROM `discuss` WHERE ( `status` = 'show' AND `product_id` IN (450,448,447,446,445,444,443,442,441,440,60,3) ) AND `discuss`.`deletetime` IS NULL [ RunTime:0.001246s ]
- [ SQL ] SELECT * FROM `product_sku_price` WHERE ( `product_id` IN (450,448,447,446,445,444,443,442,441,440,60,3) ) AND `product_sku_price`.`deletetime` IS NULL ORDER BY `weigh` ASC,`id` ASC [ RunTime:0.001394s ]
- [ SQL ] SELECT * FROM `activity` WHERE ( ( 1775160675 > starttime && 1775160675 < endtime ) ) AND `activity`.`deletetime` IS NULL ORDER BY `starttime` ASC LIMIT 30 [ RunTime:0.000930s ]
- [ SQL ] set session sql_mode='STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION' [ RunTime:0.000931s ]
- [ SQL ] SELECT `value` FROM `config` WHERE `name` = 'product_review' LIMIT 1 [ RunTime:0.001064s ]
- [ 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.001064s ]
- [ SQL ] SELECT `id` FROM `category` WHERE `path` = 'all' LIMIT 1 [ RunTime:0.001069s ]
- [ 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.001797s ]
- [ SQL ] SELECT `value` FROM `config` WHERE `name` = 'klaviyo_config' LIMIT 1 [ RunTime:0.001259s ]
- [ SQL ] SELECT COUNT(*) AS tp_count FROM `app_center` WHERE `name` = 'salesmartly' AND `is_installed` = 1 LIMIT 1 [ RunTime:0.001000s ]
- [ SQL ] SELECT * FROM `themes_menu_item` WHERE `themes_menu_item`.`deletetime` IS NULL [ RunTime:0.001052s ]
- [ 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.000994s ]
- [ 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.001170s ]
- [ SQL ] SELECT * FROM `custom_activity_relation` WHERE `product_id` = 60 LIMIT 1 [ RunTime:0.001215s ]
- [ SQL ] SELECT `id` FROM `custom_activity` WHERE `id` = 1 AND `status` = '1' LIMIT 1 [ RunTime:0.000939s ]
- [ SQL ] SELECT `id` FROM `product` WHERE ( `id` <> 0 AND `status` = 'up' ) AND `product`.`deletetime` IS NULL ORDER BY `sales` DESC LIMIT 5 [ RunTime:0.001460s ]
- [ SQL ] SELECT COUNT(*) AS tp_count FROM `product` WHERE ( `status` = 'up' AND `deletetime` IS NULL AND `id` IN (3,450,60,440,441) ) AND `product`.`deletetime` IS NULL LIMIT 1 [ RunTime:0.001111s ]
- [ SQL ] SELECT * FROM `product` WHERE ( `status` = 'up' AND `deletetime` IS NULL AND `id` IN (3,450,60,440,441) ) AND `product`.`deletetime` IS NULL ORDER BY field(id,3,450,60,440,441) LIMIT 0,15 [ RunTime:0.001465s ]
- [ SQL ] SELECT * FROM `discuss` WHERE ( `status` = 'show' AND `product_id` IN (3,450,60,440,441) ) AND `discuss`.`deletetime` IS NULL [ RunTime:0.001207s ]
- [ SQL ] SELECT * FROM `product_sku_price` WHERE ( `product_id` IN (3,450,60,440,441) ) AND `product_sku_price`.`deletetime` IS NULL ORDER BY `weigh` ASC,`id` ASC [ RunTime:0.001379s ]
- [ 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.001369s ]
- [ SQL ] SELECT * FROM `custom_activity_relation` WHERE `product_id` = 60 LIMIT 1 [ RunTime:0.001094s ]
- [ SQL ] SELECT `id` FROM `custom_activity` WHERE `id` = 1 AND `status` = '1' LIMIT 1 [ RunTime:0.000945s ]
- [ SQL ] SELECT * FROM `custom_activity_relation` WHERE `product_id` = 60 LIMIT 1 [ RunTime:0.001196s ]
- [ SQL ] SELECT `id` FROM `custom_activity` WHERE `id` = 1 AND `status` = '1' LIMIT 1 [ RunTime:0.000924s ]
- [ SQL ] SELECT * FROM `custom_activity_relation` WHERE `product_id` = 60 LIMIT 1 [ RunTime:0.000910s ]
- [ SQL ] SELECT `id` FROM `custom_activity` WHERE `id` = 1 AND `status` = '1' LIMIT 1 [ RunTime:0.000933s ]
- [ SQL ] SELECT * FROM `custom_activity_relation` WHERE `product_id` = 60 LIMIT 1 [ RunTime:0.001033s ]
- [ SQL ] SELECT `id` FROM `custom_activity` WHERE `id` = 1 AND `status` = '1' LIMIT 1 [ RunTime:0.000920s ]
- 1/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.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 < 1775160675 and b.endtime > 1775160675 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(2, category_ids) ) OR ( find_in_set(1, category_ids) ) ) ) AND `p`.`deletetime` IS NULL ORDER BY weigh desc, id desc [0.005001s/0.063733s=7.85%]
- 2/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 (450,448,447,446,445,444,443,442,441,440,60,3,2) group by binary(p.name), binary(p1.name); [0.003868s/0.063733s=6.07%]
- 3/47 . CONNECT:[ UseTime:0.002400s ] mysql:host=database-test2.cb81pdkxodkj.us-east-1.rds.amazonaws.com:3306;port=3306;dbname=shoppaas_1704420534302;charset=utf8mb4 [0.002400s/0.063733s=3.77%]
- 4/47 . set time_zone = '+08:00' [0.002164s/0.063733s=3.40%]
- 5/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.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 < 1775160675 and b.endtime > 1775160675 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(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.002027s/0.063733s=3.18%]
- 6/47 . 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.001797s/0.063733s=2.82%]
- 7/47 . set session sql_mode='STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION' [0.001602s/0.063733s=2.51%]
- 8/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 < 1775160675 and b.endtime > 1775160675 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(2, category_ids) ) OR ( find_in_set(1, category_ids) ) ) ) AND `p`.`deletetime` IS NULL LIMIT 1 [0.001574s/0.063733s=2.47%]
- 9/47 . SELECT `value` FROM `config` WHERE `name` = 'lang_auto_detect' LIMIT 1 [0.001526s/0.063733s=2.39%]
- 10/47 . SELECT * FROM `product` WHERE ( `status` = 'up' AND `deletetime` IS NULL AND `id` IN (3,450,60,440,441) ) AND `product`.`deletetime` IS NULL ORDER BY field(id,3,450,60,440,441) LIMIT 0,15 [0.001465s/0.063733s=2.30%]
- 11/47 . SELECT `id` FROM `product` WHERE ( `id` <> 0 AND `status` = 'up' ) AND `product`.`deletetime` IS NULL ORDER BY `sales` DESC LIMIT 5 [0.001460s/0.063733s=2.29%]
- 12/47 . SELECT * FROM `product_sku_price` WHERE ( `product_id` IN (450,448,447,446,445,444,443,442,441,440,60,3) ) AND `product_sku_price`.`deletetime` IS NULL ORDER BY `weigh` ASC,`id` ASC [0.001394s/0.063733s=2.19%]
- 13/47 . SELECT * FROM `product_sku_price` WHERE ( `product_id` IN (3,450,60,440,441) ) AND `product_sku_price`.`deletetime` IS NULL ORDER BY `weigh` ASC,`id` ASC [0.001379s/0.063733s=2.16%]
- 14/47 . SELECT `id`,`name`,`template`,`version`,`type`,`remark`,`weigh`,`createtime`,`updatetime`,`deletetime` FROM `themes` WHERE ( `type` = 'release' ) AND `themes`.`deletetime` IS NULL LIMIT 1 [0.001369s/0.063733s=2.15%]
- 15/47 . SELECT * FROM `payment` WHERE `status` = '1' ORDER BY `weigh` DESC,`id` ASC [0.001260s/0.063733s=1.98%]
- 16/47 . SELECT `value` FROM `config` WHERE `name` = 'klaviyo_config' LIMIT 1 [0.001259s/0.063733s=1.98%]
- 17/47 . SELECT * FROM `discuss` WHERE ( `status` = 'show' AND `product_id` IN (450,448,447,446,445,444,443,442,441,440,60,3) ) AND `discuss`.`deletetime` IS NULL [0.001246s/0.063733s=1.96%]
- 18/47 . SELECT COUNT(*) AS tp_count FROM `app_center` WHERE `name` = 'product_topic' AND `is_installed` = 1 LIMIT 1 [0.001235s/0.063733s=1.94%]
- 19/47 . SELECT `value` FROM `config` WHERE ( name = 'multiCurrencySwitch' ) LIMIT 1 [0.001230s/0.063733s=1.93%]
- 20/47 . SELECT * FROM `custom_activity_relation` WHERE `product_id` = 60 LIMIT 1 [0.001215s/0.063733s=1.91%]
- 21/47 . SELECT * FROM `discuss` WHERE ( `status` = 'show' AND `product_id` IN (3,450,60,440,441) ) AND `discuss`.`deletetime` IS NULL [0.001207s/0.063733s=1.89%]
- 22/47 . SELECT * FROM `custom_activity_relation` WHERE `product_id` = 60 LIMIT 1 [0.001196s/0.063733s=1.88%]
- 23/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.001170s/0.063733s=1.84%]
- 24/47 . SELECT `value` FROM `config` WHERE `name` = 'customer_login_config' LIMIT 1 [0.001117s/0.063733s=1.75%]
- 25/47 . SELECT COUNT(*) AS tp_count FROM `product` WHERE ( `status` = 'up' AND `deletetime` IS NULL AND `id` IN (3,450,60,440,441) ) AND `product`.`deletetime` IS NULL LIMIT 1 [0.001111s/0.063733s=1.74%]
- 26/47 . SELECT * FROM `custom_activity_relation` WHERE `product_id` = 60 LIMIT 1 [0.001094s/0.063733s=1.72%]
- 27/47 . SELECT COUNT(*) AS tp_count FROM `app_center` WHERE `name` = 'access_control' AND `is_installed` = 1 LIMIT 1 [0.001083s/0.063733s=1.70%]
- 28/47 . SELECT `id` FROM `category` WHERE `path` = 'all' LIMIT 1 [0.001069s/0.063733s=1.68%]
- 29/47 . SELECT `value` FROM `config` WHERE `name` = 'product_review' LIMIT 1 [0.001064s/0.063733s=1.67%]
- 30/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.001064s/0.063733s=1.67%]
- 31/47 . SELECT * FROM `themes_menu_item` WHERE `themes_menu_item`.`deletetime` IS NULL [0.001052s/0.063733s=1.65%]
- 32/47 . SELECT `value` FROM `config` WHERE ( name = 'byIpSwitch' ) LIMIT 1 [0.001042s/0.063733s=1.63%]
- 33/47 . SELECT * FROM `custom_activity_relation` WHERE `product_id` = 60 LIMIT 1 [0.001033s/0.063733s=1.62%]
- 34/47 . SELECT COUNT(*) AS tp_count FROM `app_center` WHERE `name` = 'salesmartly' AND `is_installed` = 1 LIMIT 1 [0.001000s/0.063733s=1.57%]
- 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.000994s/0.063733s=1.56%]
- 36/47 . SELECT @@session.sql_mode [0.000969s/0.063733s=1.52%]
- 37/47 . SELECT `id` FROM `custom_activity` WHERE `id` = 1 AND `status` = '1' LIMIT 1 [0.000945s/0.063733s=1.48%]
- 38/47 . SELECT `value` FROM `config` WHERE `name` = 'channel_google' LIMIT 1 [0.000940s/0.063733s=1.47%]
- 39/47 . SELECT `id` FROM `custom_activity` WHERE `id` = 1 AND `status` = '1' LIMIT 1 [0.000939s/0.063733s=1.47%]
- 40/47 . SELECT `id` FROM `custom_activity` WHERE `id` = 1 AND `status` = '1' LIMIT 1 [0.000933s/0.063733s=1.46%]
- 41/47 . set session sql_mode='STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION' [0.000931s/0.063733s=1.46%]
- 42/47 . SELECT * FROM `activity` WHERE ( ( 1775160675 > starttime && 1775160675 < endtime ) ) AND `activity`.`deletetime` IS NULL ORDER BY `starttime` ASC LIMIT 30 [0.000930s/0.063733s=1.46%]
- 43/47 . SELECT `id` FROM `custom_activity` WHERE `id` = 1 AND `status` = '1' LIMIT 1 [0.000924s/0.063733s=1.45%]
- 44/47 . SELECT `id` FROM `custom_activity` WHERE `id` = 1 AND `status` = '1' LIMIT 1 [0.000920s/0.063733s=1.44%]
- 45/47 . SELECT * FROM `custom_activity_relation` WHERE `product_id` = 60 LIMIT 1 [0.000910s/0.063733s=1.43%]
- 46/47 . SELECT @@session.sql_mode [0.000824s/0.063733s=1.29%]
- 47/47 . set session sql_mode='STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION' [0.000801s/0.063733s=1.26%]
- 1/5. SELECT `id` FROM `custom_activity` WHERE `id` = 1 AND `status` = '1' LIMIT 1 [5 times, 0.004661s/0.063733s=7.31%]
- 2/5. SELECT * FROM `custom_activity_relation` WHERE `product_id` = 60 LIMIT 1 [5 times, 0.005448s/0.063733s=8.55%]
- 3/5. set session sql_mode='STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION' [3 times, 0.003334s/0.063733s=5.23%]
- 4/5. 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.003228s/0.063733s=5.06%]
- 5/5. SELECT @@session.sql_mode [2 times, 0.001793s/0.063733s=2.81%]