基本
文件
流程
慢流程
错误
SQL
慢sql
重复sql
调试
- 请求信息 : 2025-12-16 16:39:47 HTTP/1.1 GET : zhouxinspdz001.saascdn.co/activity/marketing_discounts/1
- 运行时间 : 0.151252s [ 吞吐率:6.61req/s ] 内存消耗:21,844.63kb 文件加载:307
- 查询信息 : [耗时:0.036997s/0.151252 24.46% ] 25 queries ,6 writes
- 缓存信息 : 9 reads,1 writes
- 配置加载 : 83
- 会话信息 : SESSION_ID=ca7rq19mhf22l046d3tvcc9vs7
- [ 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.000275s ]
- [ 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.000055s ]
- [ ROUTE ] array (
'type' => 'module',
'module' =>
array (
0 => 'index',
1 => 'product',
2 => 'dicount_lists',
),
'convert' => false,
)
- [ HEADER ] array (
'x-forwarded-proto' => 'https',
'x-forwarded-host' => 'zhouxinspdz001.saascdn.co',
'x-forwarded-for' => '216.73.216.141',
'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' => 'zhouxinspdz001.saascdn.co',
'content-length' => '',
'content-type' => '',
)
- [ PARAM ] array (
'type' => 'marketing_discounts',
'id' => '1',
'path' => 'all',
)
- [ LANG ] /wwwroot/public/../application/index/lang/en-us.php
- [ BEHAVIOR ] Run app\common\behavior\Common @module_init [ RunTime:0.004240s ]
- [ BEHAVIOR ] Run \addons\aws\Aws @module_init [ RunTime:0.000028s ]
- [ DB ] INIT mysql
- [ BEHAVIOR ] Run \addons\aws\Aws @upload_config_init [ RunTime:0.000034s ]
- [ BEHAVIOR ] Run \addons\nkeditor\Nkeditor @config_init [ RunTime:0.000063s ]
- [ SESSION ] INIT array (
'id' => '',
'var_session_id' => '',
'session_name' => 'shoppaas_1696643044252:',
'type' => 'redis',
'host' => 'master.redis-test8.evt7pw.use1.cache.amazonaws.com',
'port' => '6379',
'password' => '',
'select' => 6,
'auto_start' => true,
)
- [ RUN ] app\index\controller\Product->dicount_lists[ /wwwroot/application/index/controller/Product.php ]
- [ VIEW ] /wwwroot/template/ella/template/product_discounts_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 => '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 => 'category',
40 => 'productList',
41 => 'empty',
42 => 'view',
43 => 'order',
44 => 'seotitle',
45 => 'tag',
46 => 'seokeywords',
47 => 'seodescription',
) ]
- [ BEHAVIOR ] Run addons\pixel\Hook @pixels [ RunTime:0.000082s ]
- [ BEHAVIOR ] Run addons\facebookpixel\Hook @pixels [ RunTime:0.001786s ]
- [ BEHAVIOR ] Run addons\snapchatpixel\Hook @pixels [ RunTime:0.001723s ]
- [ BEHAVIOR ] Run addons\googlepixel\Hook @pixels [ RunTime:0.001623s ]
- [ BEHAVIOR ] Run addons\tiktokpixel\Hook @pixels [ RunTime:0.001601s ]
- [ BEHAVIOR ] Run addons\klaviyopixel\Hook @pixels [ RunTime:0.001026s ]
- [ BEHAVIOR ] Run addons\featuredproduct\Hook @global_content_bottom [ RunTime:0.000985s ]
- [ BEHAVIOR ] Run addons\marketingnotify\Hook @global_footer [ RunTime:0.000048s ]
- [ BEHAVIOR ] Run addons\marketingcookie\Hook @global_footer [ RunTime:0.001623s ]
- [ BEHAVIOR ] Run addons\marketingpopup\Hook @global_footer [ RunTime:0.000046s ]
- 1/19 . [ BEHAVIOR ] Run app\common\behavior\Common @module_init [ RunTime:0.004240s ] [0.004240s/0.015339s=27.64%]
- 2/19 . [ BEHAVIOR ] Run addons\facebookpixel\Hook @pixels [ RunTime:0.001786s ] [0.001786s/0.015339s=11.64%]
- 3/19 . [ BEHAVIOR ] Run addons\snapchatpixel\Hook @pixels [ RunTime:0.001723s ] [0.001723s/0.015339s=11.23%]
- 4/19 . [ BEHAVIOR ] Run addons\googlepixel\Hook @pixels [ RunTime:0.001623s ] [0.001623s/0.015339s=10.58%]
- 5/19 . [ BEHAVIOR ] Run addons\marketingcookie\Hook @global_footer [ RunTime:0.001623s ] [0.001623s/0.015339s=10.58%]
- 6/19 . [ BEHAVIOR ] Run addons\tiktokpixel\Hook @pixels [ RunTime:0.001601s ] [0.001601s/0.015339s=10.44%]
- 7/19 . [ BEHAVIOR ] Run addons\klaviyopixel\Hook @pixels [ RunTime:0.001026s ] [0.001026s/0.015339s=6.69%]
- 8/19 . [ BEHAVIOR ] Run addons\featuredproduct\Hook @global_content_bottom [ RunTime:0.000985s ] [0.000985s/0.015339s=6.42%]
- 9/19 . [ BEHAVIOR ] Run \addons\aws\Aws @app_init [ RunTime:0.000275s ] [0.000275s/0.015339s=1.79%]
- 10/19 . [ BEHAVIOR ] Run addons\pixel\Hook @pixels [ RunTime:0.000082s ] [0.000082s/0.015339s=0.53%]
- 11/19 . [ BEHAVIOR ] Run \addons\nkeditor\Nkeditor @config_init [ RunTime:0.000063s ] [0.000063s/0.015339s=0.41%]
- 12/19 . [ BEHAVIOR ] Run app\common\behavior\Common @app_dispatch [ RunTime:0.000055s ] [0.000055s/0.015339s=0.36%]
- 13/19 . [ BEHAVIOR ] Run Closure @app_init [ RunTime:0.000049s ] [0.000049s/0.015339s=0.32%]
- 14/19 . [ BEHAVIOR ] Run addons\marketingnotify\Hook @global_footer [ RunTime:0.000048s ] [0.000048s/0.015339s=0.31%]
- 15/19 . [ BEHAVIOR ] Run addons\marketingpopup\Hook @global_footer [ RunTime:0.000046s ] [0.000046s/0.015339s=0.30%]
- 16/19 . [ BEHAVIOR ] Run \addons\listener\Listener @app_init [ RunTime:0.000039s ] [0.000039s/0.015339s=0.25%]
- 17/19 . [ BEHAVIOR ] Run \addons\aws\Aws @upload_config_init [ RunTime:0.000034s ] [0.000034s/0.015339s=0.22%]
- 18/19 . [ BEHAVIOR ] Run \addons\aws\Aws @module_init [ RunTime:0.000028s ] [0.000028s/0.015339s=0.18%]
- 19/19 . [ BEHAVIOR ] Run Closure @app_init [ RunTime:0.000013s ] [0.000013s/0.015339s=0.08%]
- [ DB ] CONNECT:[ UseTime:0.004134s ] mysql:host=database-test2.cb81pdkxodkj.us-east-1.rds.amazonaws.com:3306;port=3306;dbname=shoppaas_1696643044252;charset=utf8mb4
- [ SQL ] SELECT * FROM `payment` WHERE `status` = '1' ORDER BY `weigh` DESC,`id` ASC [ RunTime:0.001060s ]
- [ 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.000840s ]
- [ SQL ] set time_zone = '+08:00' [ RunTime:0.000719s ]
- [ SQL ] SELECT `value` FROM `config` WHERE ( name = 'multiCurrencySwitch' ) LIMIT 1 [ RunTime:0.000801s ]
- [ SQL ] SELECT `value` FROM `config` WHERE ( name = 'byIpSwitch' ) LIMIT 1 [ RunTime:0.000818s ]
- [ SQL ] UPDATE `cart` SET `deletetime`=1765874387 WHERE ( NOT EXISTS ( SELECT * FROM `product` WHERE ( product.id=cart.product_id ) ) AND `user_id` = 0 AND `session_id` = 'ca7rq19mhf22l046d3tvcc9vs7' AND `createtime` > 1765615187 ) AND `cart`.`deletetime` IS NULL [ RunTime:0.000969s ]
- [ SQL ] SELECT @@session.sql_mode [ RunTime:0.000677s ]
- [ SQL ] set session sql_mode='STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION' [ RunTime:0.000615s ]
- [ 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` = 'ca7rq19mhf22l046d3tvcc9vs7' AND `store_id` = 0 ) AND `cart`.`deletetime` IS NULL GROUP BY `id` ORDER BY `createtime` DESC,`id` ASC [ RunTime:0.001392s ]
- [ SQL ] set session sql_mode='STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION' [ RunTime:0.000646s ]
- [ SQL ] SELECT `value` FROM `config` WHERE `name` = 'customer_login_config' LIMIT 1 [ RunTime:0.000761s ]
- [ SQL ] SELECT COUNT(*) AS tp_count FROM `app_center` WHERE `name` = 'access_control' AND `is_installed` = 1 LIMIT 1 [ RunTime:0.000908s ]
- [ SQL ] SELECT * FROM `marketing_discount_gift_reduced` WHERE ( `id` = 1 ) AND `marketing_discount_gift_reduced`.`deletetime` IS NULL LIMIT 1 [ RunTime:0.004566s ]
- [ SQL ] SELECT @@session.sql_mode [ RunTime:0.000646s ]
- [ SQL ] set session sql_mode='STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION' [ RunTime:0.000684s ]
- [ 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 < 1765874387 and b.endtime > 1765874387 WHERE `a`.`deletetime` IS NULL ) `t` group by `t`.`product_id`) `y` ON `y`.`product_id`=`p`.`id` WHERE ( `p`.`status` IN ('up') AND `id` IN (10) AND ( ( find_in_set(5, category_ids) ) OR ( 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.002658s ]
- [ 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 < 1765874387 and b.endtime > 1765874387 WHERE `a`.`deletetime` IS NULL ) `t` group by `t`.`product_id`) `y` ON `y`.`product_id`=`p`.`id` WHERE ( `p`.`status` IN ('up') AND `id` IN (10) AND ( ( find_in_set(5, category_ids) ) OR ( 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.001437s ]
- [ SQL ] SELECT * FROM `discuss` WHERE ( `status` = 'show' AND `product_id` IN (10) ) AND `discuss`.`deletetime` IS NULL [ RunTime:0.000858s ]
- [ SQL ] SELECT * FROM `product_sku_price` WHERE ( `product_id` IN (10) ) AND `product_sku_price`.`deletetime` IS NULL ORDER BY `weigh` ASC,`id` ASC [ RunTime:0.000898s ]
- [ SQL ] SELECT * FROM `activity` WHERE ( ( 1765874387 > starttime && 1765874387 < endtime ) ) AND `activity`.`deletetime` IS NULL ORDER BY `starttime` ASC LIMIT 30 [ RunTime:0.001036s ]
- [ SQL ] SELECT * FROM `activity_product_sku_price` WHERE ( `status` = 'up' AND `activity_id` IN (4) ) AND `activity_product_sku_price`.`deletetime` IS NULL [ RunTime:0.000794s ]
- [ SQL ] set session sql_mode='STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION' [ RunTime:0.001128s ]
- [ 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.000790s ]
- [ SQL ] SELECT `value` FROM `config` WHERE `name` = 'klaviyo_config' LIMIT 1 [ RunTime:0.000916s ]
- [ 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.000922s ]
- [ SQL ] SELECT * FROM `custom_activity_relation` WHERE `product_id` = 10 LIMIT 1 [ RunTime:0.000892s ]
- [ SQL ] SELECT `id` FROM `custom_activity` WHERE `id` = 22 AND `status` = '1' LIMIT 1 [ RunTime:0.000726s ]
- [ 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.001067s ]
- [ 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.000846s ]
- [ 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` <= 1765874387
AND pcm.`ends_at` >= 1765874387
AND pcm.`status` = 'enable'
AND pcm.`deletetime` IS NULL [ RunTime:0.000853s ]
- 1/32 . SELECT * FROM `marketing_discount_gift_reduced` WHERE ( `id` = 1 ) AND `marketing_discount_gift_reduced`.`deletetime` IS NULL LIMIT 1 [0.004566s/0.036997s=12.34%]
- 2/32 . CONNECT:[ UseTime:0.004134s ] mysql:host=database-test2.cb81pdkxodkj.us-east-1.rds.amazonaws.com:3306;port=3306;dbname=shoppaas_1696643044252;charset=utf8mb4 [0.004134s/0.036997s=11.17%]
- 3/32 . 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 < 1765874387 and b.endtime > 1765874387 WHERE `a`.`deletetime` IS NULL ) `t` group by `t`.`product_id`) `y` ON `y`.`product_id`=`p`.`id` WHERE ( `p`.`status` IN ('up') AND `id` IN (10) AND ( ( find_in_set(5, category_ids) ) OR ( 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.002658s/0.036997s=7.18%]
- 4/32 . 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 < 1765874387 and b.endtime > 1765874387 WHERE `a`.`deletetime` IS NULL ) `t` group by `t`.`product_id`) `y` ON `y`.`product_id`=`p`.`id` WHERE ( `p`.`status` IN ('up') AND `id` IN (10) AND ( ( find_in_set(5, category_ids) ) OR ( 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.001437s/0.036997s=3.88%]
- 5/32 . 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` = 'ca7rq19mhf22l046d3tvcc9vs7' AND `store_id` = 0 ) AND `cart`.`deletetime` IS NULL GROUP BY `id` ORDER BY `createtime` DESC,`id` ASC [0.001392s/0.036997s=3.76%]
- 6/32 . set session sql_mode='STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION' [0.001128s/0.036997s=3.05%]
- 7/32 . 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.001067s/0.036997s=2.88%]
- 8/32 . SELECT * FROM `payment` WHERE `status` = '1' ORDER BY `weigh` DESC,`id` ASC [0.001060s/0.036997s=2.87%]
- 9/32 . SELECT * FROM `activity` WHERE ( ( 1765874387 > starttime && 1765874387 < endtime ) ) AND `activity`.`deletetime` IS NULL ORDER BY `starttime` ASC LIMIT 30 [0.001036s/0.036997s=2.80%]
- 10/32 . UPDATE `cart` SET `deletetime`=1765874387 WHERE ( NOT EXISTS ( SELECT * FROM `product` WHERE ( product.id=cart.product_id ) ) AND `user_id` = 0 AND `session_id` = 'ca7rq19mhf22l046d3tvcc9vs7' AND `createtime` > 1765615187 ) AND `cart`.`deletetime` IS NULL [0.000969s/0.036997s=2.62%]
- 11/32 . SELECT `value` FROM `config` WHERE `name` = 'channel_google' LIMIT 1 [0.000940s/0.036997s=2.54%]
- 12/32 . 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.000922s/0.036997s=2.49%]
- 13/32 . SELECT `value` FROM `config` WHERE `name` = 'klaviyo_config' LIMIT 1 [0.000916s/0.036997s=2.48%]
- 14/32 . SELECT COUNT(*) AS tp_count FROM `app_center` WHERE `name` = 'access_control' AND `is_installed` = 1 LIMIT 1 [0.000908s/0.036997s=2.45%]
- 15/32 . SELECT * FROM `product_sku_price` WHERE ( `product_id` IN (10) ) AND `product_sku_price`.`deletetime` IS NULL ORDER BY `weigh` ASC,`id` ASC [0.000898s/0.036997s=2.43%]
- 16/32 . SELECT * FROM `custom_activity_relation` WHERE `product_id` = 10 LIMIT 1 [0.000892s/0.036997s=2.41%]
- 17/32 . SELECT * FROM `discuss` WHERE ( `status` = 'show' AND `product_id` IN (10) ) AND `discuss`.`deletetime` IS NULL [0.000858s/0.036997s=2.32%]
- 18/32 . 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` <= 1765874387
AND pcm.`ends_at` >= 1765874387
AND pcm.`status` = 'enable'
AND pcm.`deletetime` IS NULL [0.000853s/0.036997s=2.31%]
- 19/32 . 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.000846s/0.036997s=2.29%]
- 20/32 . SELECT `value` FROM `config` WHERE `name` = 'lang_auto_detect' LIMIT 1 [0.000840s/0.036997s=2.27%]
- 21/32 . SELECT `value` FROM `config` WHERE ( name = 'byIpSwitch' ) LIMIT 1 [0.000818s/0.036997s=2.21%]
- 22/32 . SELECT `value` FROM `config` WHERE ( name = 'multiCurrencySwitch' ) LIMIT 1 [0.000801s/0.036997s=2.17%]
- 23/32 . SELECT * FROM `activity_product_sku_price` WHERE ( `status` = 'up' AND `activity_id` IN (4) ) AND `activity_product_sku_price`.`deletetime` IS NULL [0.000794s/0.036997s=2.15%]
- 24/32 . 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.000790s/0.036997s=2.14%]
- 25/32 . SELECT `value` FROM `config` WHERE `name` = 'customer_login_config' LIMIT 1 [0.000761s/0.036997s=2.06%]
- 26/32 . SELECT `id` FROM `custom_activity` WHERE `id` = 22 AND `status` = '1' LIMIT 1 [0.000726s/0.036997s=1.96%]
- 27/32 . set time_zone = '+08:00' [0.000719s/0.036997s=1.94%]
- 28/32 . set session sql_mode='STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION' [0.000684s/0.036997s=1.85%]
- 29/32 . SELECT @@session.sql_mode [0.000677s/0.036997s=1.83%]
- 30/32 . set session sql_mode='STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION' [0.000646s/0.036997s=1.75%]
- 31/32 . SELECT @@session.sql_mode [0.000646s/0.036997s=1.75%]
- 32/32 . set session sql_mode='STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION' [0.000615s/0.036997s=1.66%]
- 1/3. set session sql_mode='STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION' [4 times, 0.003073s/0.036997s=8.31%]
- 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 [4 times, 0.003625s/0.036997s=9.80%]
- 3/3. SELECT @@session.sql_mode [2 times, 0.001323s/0.036997s=3.58%]