[ SQL ] set session sql_mode='STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION' [ RunTime:0.000777s ]
[ 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 < 1774987230 and b.endtime > 1774987230 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 (30) 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.001449s ]
[ 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 < 1774987230 and b.endtime > 1774987230 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 (30) 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.001592s ]
[ SQL ] SELECT * FROM `discuss` WHERE ( `status` = 'show' AND `product_id` IN (30) ) AND `discuss`.`deletetime` IS NULL [ RunTime:0.001045s ]
[ SQL ] SELECT * FROM `product_sku_price` WHERE ( `product_id` IN (30) ) AND `product_sku_price`.`deletetime` IS NULL ORDER BY `weigh` ASC,`id` ASC [ RunTime:0.001114s ]
[ SQL ] SELECT * FROM `activity` WHERE ( ( 1774987230 > starttime && 1774987230 < endtime ) ) AND `activity`.`deletetime` IS NULL ORDER BY `starttime` ASC LIMIT 30 [ RunTime:0.001045s ]
[ SQL ] SELECT * FROM `activity_product_sku_price` WHERE ( `status` = 'up' AND `activity_id` IN (2,3) ) AND `activity_product_sku_price`.`deletetime` IS NULL [ RunTime:0.000959s ]
[ SQL ] set session sql_mode='STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION' [ RunTime:0.000906s ]
[ 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.000988s ]
[ SQL ] SELECT `value` FROM `config` WHERE `name` = 'klaviyo_config' LIMIT 1 [ RunTime:0.001196s ]
[ SQL ] SELECT COUNT(*) AS tp_count FROM `app_center` WHERE `name` = 'salesmartly' AND `is_installed` = 1 LIMIT 1 [ RunTime:0.000983s ]
[ SQL ] SELECT * FROM `themes_menu_item` WHERE `themes_menu_item`.`deletetime` IS NULL [ RunTime:0.000996s ]
[ 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.000919s ]
[ SQL ] SELECT * FROM `custom_activity_relation` WHERE `product_id` = 30 LIMIT 1 [ RunTime:0.000886s ]
[ SQL ] SELECT `id` FROM `custom_activity` WHERE `id` = 13 AND `status` = '1' LIMIT 1 [ RunTime:0.000954s ]
[ SQL ] SELECT * FROM `custom_activity_relation` WHERE `product_id` = 30 LIMIT 1 [ RunTime:0.000987s ]
[ SQL ] SELECT `id` FROM `custom_activity` WHERE `id` = 13 AND `status` = '1' LIMIT 1 [ RunTime:0.000937s ]
[ 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.000893s ]
[ SQL ] SELECT * FROM `custom_activity_relation` WHERE `product_id` = 30 LIMIT 1 [ RunTime:0.001077s ]
[ SQL ] SELECT `id` FROM `custom_activity` WHERE `id` = 13 AND `status` = '1' LIMIT 1 [ RunTime:0.000936s ]
[ SQL ] SELECT * FROM `custom_activity_relation` WHERE `product_id` = 30 LIMIT 1 [ RunTime:0.000911s ]
[ SQL ] SELECT `id` FROM `custom_activity` WHERE `id` = 13 AND `status` = '1' LIMIT 1 [ RunTime:0.000810s ]
2/37 . 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 < 1774987230 and b.endtime > 1774987230 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 (30) 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.001592s/0.040705s=3.91%]
3/37 . 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 < 1774987230 and b.endtime > 1774987230 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 (30) 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.001449s/0.040705s=3.56%]
4/37 . SELECT COUNT(*) AS tp_count FROM `app_center` WHERE `name` = 'access_control' AND `is_installed` = 1 LIMIT 1 [0.001211s/0.040705s=2.98%]
5/37 . SELECT * FROM `payment` WHERE `status` = '1' ORDER BY `weigh` DESC,`id` ASC [0.001207s/0.040705s=2.97%]
6/37 . SELECT `value` FROM `config` WHERE `name` = 'klaviyo_config' LIMIT 1 [0.001196s/0.040705s=2.94%]
7/37 . SELECT `value` FROM `config` WHERE `name` = 'channel_google' LIMIT 1 [0.001156s/0.040705s=2.84%]
8/37 . SELECT * FROM `activity` WHERE ( `id` = 2 ) AND `activity`.`deletetime` IS NULL LIMIT 1 [0.001135s/0.040705s=2.79%]
9/37 . SELECT * FROM `product_sku_price` WHERE ( `product_id` IN (30) ) AND `product_sku_price`.`deletetime` IS NULL ORDER BY `weigh` ASC,`id` ASC [0.001114s/0.040705s=2.74%]
10/37 . SELECT * FROM `custom_activity_relation` WHERE `product_id` = 30 LIMIT 1 [0.001077s/0.040705s=2.65%]
11/37 . SELECT * FROM `discuss` WHERE ( `status` = 'show' AND `product_id` IN (30) ) AND `discuss`.`deletetime` IS NULL [0.001045s/0.040705s=2.57%]
12/37 . SELECT * FROM `activity` WHERE ( ( 1774987230 > starttime && 1774987230 < endtime ) ) AND `activity`.`deletetime` IS NULL ORDER BY `starttime` ASC LIMIT 30 [0.001045s/0.040705s=2.57%]
13/37 . SELECT `value` FROM `config` WHERE `name` = 'customer_login_config' LIMIT 1 [0.001043s/0.040705s=2.56%]
14/37 . set time_zone = '+08:00' [0.001003s/0.040705s=2.46%]
15/37 . SELECT `value` FROM `config` WHERE ( name = 'byIpSwitch' ) LIMIT 1 [0.001001s/0.040705s=2.46%]
16/37 . SELECT * FROM `themes_menu_item` WHERE `themes_menu_item`.`deletetime` IS NULL [0.000996s/0.040705s=2.45%]
17/37 . 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.000988s/0.040705s=2.43%]
18/37 . SELECT * FROM `custom_activity_relation` WHERE `product_id` = 30 LIMIT 1 [0.000987s/0.040705s=2.42%]
19/37 . SELECT COUNT(*) AS tp_count FROM `app_center` WHERE `name` = 'salesmartly' AND `is_installed` = 1 LIMIT 1 [0.000983s/0.040705s=2.41%]
20/37 . SELECT `value` FROM `config` WHERE `name` = 'lang_auto_detect' LIMIT 1 [0.000980s/0.040705s=2.41%]
21/37 . SELECT COUNT(*) AS tp_count FROM `access_control_iplist` WHERE `type` = '2' AND `ip` = '216.73.216.31' LIMIT 1 [0.000976s/0.040705s=2.40%]
22/37 . SELECT `area_id` FROM `access_control_blacklist` [0.000968s/0.040705s=2.38%]
23/37 . SELECT * FROM `activity_product_sku_price` WHERE ( `status` = 'up' AND `activity_id` IN (2,3) ) AND `activity_product_sku_price`.`deletetime` IS NULL [0.000959s/0.040705s=2.36%]
24/37 . SELECT `id` FROM `custom_activity` WHERE `id` = 13 AND `status` = '1' LIMIT 1 [0.000954s/0.040705s=2.34%]
25/37 . SELECT `id` FROM `custom_activity` WHERE `id` = 13 AND `status` = '1' LIMIT 1 [0.000937s/0.040705s=2.30%]
26/37 . SELECT `id` FROM `custom_activity` WHERE `id` = 13 AND `status` = '1' LIMIT 1 [0.000936s/0.040705s=2.30%]
27/37 . SELECT `value` FROM `config` WHERE ( name = 'multiCurrencySwitch' ) LIMIT 1 [0.000926s/0.040705s=2.27%]
28/37 . 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.000919s/0.040705s=2.26%]
29/37 . SELECT * FROM `custom_activity_relation` WHERE `product_id` = 30 LIMIT 1 [0.000911s/0.040705s=2.24%]
30/37 . SELECT `ip` FROM `access_control_iplist` WHERE `type` = '1' [0.000906s/0.040705s=2.23%]
31/37 . set session sql_mode='STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION' [0.000906s/0.040705s=2.23%]
32/37 . 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.000893s/0.040705s=2.19%]
34/37 . SELECT * FROM `custom_activity_relation` WHERE `product_id` = 30 LIMIT 1 [0.000886s/0.040705s=2.18%]
35/37 . SELECT `code` FROM `area` WHERE `id` IN ('') [0.000833s/0.040705s=2.05%]
36/37 . SELECT `id` FROM `custom_activity` WHERE `id` = 13 AND `status` = '1' LIMIT 1 [0.000810s/0.040705s=1.99%]
37/37 . set session sql_mode='STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION' [0.000777s/0.040705s=1.91%]
1/4. SELECT `id` FROM `custom_activity` WHERE `id` = 13 AND `status` = '1' LIMIT 1 [4 times, 0.003637s/0.040705s=8.94%]
2/4. SELECT * FROM `custom_activity_relation` WHERE `product_id` = 30 LIMIT 1 [4 times, 0.003861s/0.040705s=9.49%]
3/4. SELECT COUNT(*) AS tp_count FROM `themes_lang` WHERE ( lang_name='en' AND is_enable=1 AND transl_way=2 AND deletetime IS NULL ) LIMIT 1 [3 times, 0.0028s/0.040705s=6.88%]
4/4. set session sql_mode='STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION' [2 times, 0.001683s/0.040705s=4.13%]