查詢實際執行計劃,看走的是那種查詢索引
要根據需求,創建合適的索引qt
常常須要彙總的,能夠創建包含索引channel
--drop index ix_smssend_created on smssent_1 ;查詢
create index ix_smssend_createdon smssent_1 (created) include(status,co_id,shop_id,channel_id,sms_type,sms_qty)sse