反馈人:王凯
HWY-ZH-GZ-RDS-ComprehensiveListing 实例 慢sql: SELECT tsgl.id as listingId, tsgl.status as listingStatus, tsgl.item_id, tsgl.item_sku, tsgl.source_id, tsgl.source_name, tsgl.first_publish_time as publishTime from t_shopee_global_listing tsgl WHERE tsgl.is_deleted = 0 and tsgl.status in (1,2,3) and tsgl.source_id =13975 and tsgl.first_publish_time >= 2024-01-01 00:00:00 and tsgl.first_publish_time <= 2025-08-31 23:59:59 -- and tsgl.id not in (SELECT global_listing_id FROM t_shopee_global_listing_pubished tsglp WHERE -- tsglp.global_listing_id = tsgl.id and tsglp.is_deleted = 0 AND tsglp.STATUS IN ( 1, 3, 8 ) GROUP BY -- tsglp.global_listing_id) and tsgl.global_publish_status = 0 and tsgl.id > 0 and tsgl.id not in (SELECT global_listing_id FROM t_shopee_global_listing_sku tsgls WHERE tsgls.global_listing_id = tsgl.id and tsgls.is_deleted = 0 and tsgls.sku in ( 17936893 ) GROUP BY tsgls.global_listing_id) order by tsgl.id asc limit 1000;
先自动删除服务关闭,转需求优化后再开启