正如你可以看到我有三场的外键我tblClaims table. The
id`此表的是一个连续的整数非聚集索引。当运行特定查询时,我注意到查询太长而无法运行。所以,我包括执行计划,被告知
missing index: create nonclustered index on patientid, admissiondate, dischargedate
我很想做
create nonclustered index ix_tblClaims on tblClaims (patientID asc, admissiondate asc, dischargedate asc)
我已经在这里和那里读了一些东西约多列索引或索引的每一列不同。如果我按照单独索引每列的方法,是否正确只使用一个索引?
我添加了有问题的索引,并且查询从42秒变成了小于1 :) – wootscootinboogie 2012-07-09 19:12:35