[ SQL ] set session sql_mode='STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION' [ RunTime:0.001458s ]
[ 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 < 1774991603 and b.endtime > 1774991603 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.003073s ]
[ 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 < 1774991603 and b.endtime > 1774991603 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.001492s ]
[ SQL ] SELECT * FROM `discuss` WHERE ( `status` = 'show' AND `product_id` IN (30) ) AND `discuss`.`deletetime` IS NULL [ RunTime:0.001015s ]
[ 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.001164s ]
[ SQL ] SELECT * FROM `activity` WHERE ( ( 1774991603 > starttime && 1774991603 < endtime ) ) AND `activity`.`deletetime` IS NULL ORDER BY `starttime` ASC LIMIT 30 [ RunTime:0.001075s ]
[ 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.001191s ]
[ SQL ] SELECT `name` FROM `product_supplier` WHERE `id` = 1 LIMIT 1 [ RunTime:0.001035s ]
[ 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.000773s ]
[ SQL ] SELECT `value` FROM `config` WHERE `name` = 'klaviyo_config' LIMIT 1 [ RunTime:0.001165s ]
[ SQL ] SELECT COUNT(*) AS tp_count FROM `app_center` WHERE `name` = 'salesmartly' AND `is_installed` = 1 LIMIT 1 [ RunTime:0.001025s ]
[ SQL ] SELECT * FROM `themes_menu_item` WHERE `themes_menu_item`.`deletetime` IS NULL [ RunTime:0.000957s ]
[ 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.001047s ]
[ SQL ] SELECT * FROM `custom_activity_relation` WHERE `product_id` = 30 LIMIT 1 [ RunTime:0.000918s ]
[ SQL ] SELECT `id` FROM `custom_activity` WHERE `id` = 13 AND `status` = '1' LIMIT 1 [ RunTime:0.001013s ]
[ 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.001057s ]
[ 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.000869s ]
[ SQL ] SELECT * FROM `custom_activity_relation` WHERE `product_id` = 30 LIMIT 1 [ RunTime:0.001106s ]
[ SQL ] SELECT `id` FROM `custom_activity` WHERE `id` = 13 AND `status` = '1' LIMIT 1 [ RunTime:0.000776s ]
[ SQL ] SELECT * FROM `custom_activity_relation` WHERE `product_id` = 30 LIMIT 1 [ RunTime:0.000820s ]
[ SQL ] SELECT `id` FROM `custom_activity` WHERE `id` = 13 AND `status` = '1' LIMIT 1 [ RunTime:0.000755s ]
1/38 . 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 < 1774991603 and b.endtime > 1774991603 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.003073s/0.042588s=7.22%]
3/38 . 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 < 1774991603 and b.endtime > 1774991603 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.001492s/0.042588s=3.50%]
4/38 . set session sql_mode='STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION' [0.001458s/0.042588s=3.42%]
5/38 . SELECT * FROM `activity` WHERE ( `id` = 2 ) AND `activity`.`deletetime` IS NULL LIMIT 1 [0.001415s/0.042588s=3.32%]
6/38 . SELECT * FROM `payment` WHERE `status` = '1' ORDER BY `weigh` DESC,`id` ASC [0.001319s/0.042588s=3.10%]
7/38 . SELECT * FROM `activity_product_sku_price` WHERE ( `status` = 'up' AND `activity_id` IN (2,3) ) AND `activity_product_sku_price`.`deletetime` IS NULL [0.001191s/0.042588s=2.80%]
8/38 . SELECT `value` FROM `config` WHERE `name` = 'customer_login_config' LIMIT 1 [0.001166s/0.042588s=2.74%]
9/38 . SELECT `value` FROM `config` WHERE `name` = 'klaviyo_config' LIMIT 1 [0.001165s/0.042588s=2.74%]
10/38 . SELECT * FROM `product_sku_price` WHERE ( `product_id` IN (30) ) AND `product_sku_price`.`deletetime` IS NULL ORDER BY `weigh` ASC,`id` ASC [0.001164s/0.042588s=2.73%]
11/38 . SELECT `value` FROM `config` WHERE `name` = 'channel_google' LIMIT 1 [0.001142s/0.042588s=2.68%]
12/38 . SELECT * FROM `custom_activity_relation` WHERE `product_id` = 30 LIMIT 1 [0.001106s/0.042588s=2.60%]
13/38 . SELECT `value` FROM `config` WHERE ( name = 'multiCurrencySwitch' ) LIMIT 1 [0.001099s/0.042588s=2.58%]
14/38 . SELECT * FROM `activity` WHERE ( ( 1774991603 > starttime && 1774991603 < endtime ) ) AND `activity`.`deletetime` IS NULL ORDER BY `starttime` ASC LIMIT 30 [0.001075s/0.042588s=2.52%]
15/38 . SELECT `id` FROM `custom_activity` WHERE `id` = 13 AND `status` = '1' LIMIT 1 [0.001057s/0.042588s=2.48%]
16/38 . 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.001047s/0.042588s=2.46%]
17/38 . SELECT `name` FROM `product_supplier` WHERE `id` = 1 LIMIT 1 [0.001035s/0.042588s=2.43%]
18/38 . SELECT COUNT(*) AS tp_count FROM `access_control_iplist` WHERE `type` = '2' AND `ip` = '216.73.216.31' LIMIT 1 [0.001031s/0.042588s=2.42%]
19/38 . SELECT COUNT(*) AS tp_count FROM `app_center` WHERE `name` = 'salesmartly' AND `is_installed` = 1 LIMIT 1 [0.001025s/0.042588s=2.41%]
20/38 . SELECT * FROM `discuss` WHERE ( `status` = 'show' AND `product_id` IN (30) ) AND `discuss`.`deletetime` IS NULL [0.001015s/0.042588s=2.38%]
21/38 . set time_zone = '+08:00' [0.001015s/0.042588s=2.38%]
22/38 . SELECT `id` FROM `custom_activity` WHERE `id` = 13 AND `status` = '1' LIMIT 1 [0.001013s/0.042588s=2.38%]
23/38 . SELECT `area_id` FROM `access_control_blacklist` [0.000975s/0.042588s=2.29%]
24/38 . SELECT * FROM `themes_menu_item` WHERE `themes_menu_item`.`deletetime` IS NULL [0.000957s/0.042588s=2.25%]
25/38 . SELECT `value` FROM `config` WHERE `name` = 'lang_auto_detect' LIMIT 1 [0.000927s/0.042588s=2.18%]
26/38 . SELECT COUNT(*) AS tp_count FROM `app_center` WHERE `name` = 'access_control' AND `is_installed` = 1 LIMIT 1 [0.000922s/0.042588s=2.16%]
27/38 . SELECT * FROM `custom_activity_relation` WHERE `product_id` = 30 LIMIT 1 [0.000918s/0.042588s=2.16%]
28/38 . set session sql_mode='STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION' [0.000906s/0.042588s=2.13%]
29/38 . SELECT * FROM `custom_activity_relation` WHERE `product_id` = 30 LIMIT 1 [0.000886s/0.042588s=2.08%]
30/38 . 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.000869s/0.042588s=2.04%]
31/38 . SELECT `code` FROM `area` WHERE `id` IN ('') [0.000852s/0.042588s=2.00%]
32/38 . SELECT `ip` FROM `access_control_iplist` WHERE `type` = '1' [0.000829s/0.042588s=1.95%]
33/38 . SELECT * FROM `custom_activity_relation` WHERE `product_id` = 30 LIMIT 1 [0.000820s/0.042588s=1.93%]
34/38 . SELECT `id` FROM `custom_activity` WHERE `id` = 13 AND `status` = '1' LIMIT 1 [0.000776s/0.042588s=1.82%]
35/38 . 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.000773s/0.042588s=1.82%]
37/38 . SELECT `value` FROM `config` WHERE ( name = 'byIpSwitch' ) LIMIT 1 [0.000770s/0.042588s=1.81%]
38/38 . SELECT `id` FROM `custom_activity` WHERE `id` = 13 AND `status` = '1' LIMIT 1 [0.000755s/0.042588s=1.77%]
1/4. SELECT `id` FROM `custom_activity` WHERE `id` = 13 AND `status` = '1' LIMIT 1 [4 times, 0.003601s/0.042588s=8.46%]
2/4. SELECT * FROM `custom_activity_relation` WHERE `product_id` = 30 LIMIT 1 [4 times, 0.00373s/0.042588s=8.76%]
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.002689s/0.042588s=6.31%]
4/4. set session sql_mode='STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION' [2 times, 0.002364s/0.042588s=5.55%]