sql server 索引优化

查询实际执行计划,看走的是那种查询

要根据需求,建立合适的索引

经常需要汇总的,可以建立包含索引

--drop index ix_smssend_created on smssent_1 ;

create index ix_smssend_created
on smssent_1 (created)
include(status,co_id,shop_id,channel_id,sms_type,sms_qty)

猜你喜欢

转载自www.cnblogs.com/xinzhyu/p/11056369.html