反馈人:缪金荣

SELECT id,warranty_code,shop_name,customer_email,customer_name,order_code,client_order_code,currency,pay_time,ship_time,warranty_time,warranty_end_time,data_type,customer_tag,purchase_purpose,gender,age_range,usage_condition,five_star,accept_review,click_page,click_review,send_coupon,click_contact,process_track,is_survey,remark,customer_type,email_source_id,client_user_account,create_time,create_name,update_time,update_name,is_deleted,is_refund,shopify_customer_id,country,image_url,source_channel,sku_number,is_update_customer_tag,handle_time FROM t_warranty_order
WHERE (shop_name IS NOT NULL AND shopify_customer_id IS NULL AND is_deleted = 0) ORDER BY id ASC limit 50
优化建议:增加有效的筛选条件,比如店铺、时间范围,并检查是否存在有效索引,如果没有则需要创建;如果无法增加有效的筛选条件,可以按照id的范围进行查询,比如 id>=0 and id <30000,这个范围查完后再查id>=30000 and id<60000,如此滚动翻页查,可SQL性能
贾立鹏