嗨,我有下面的数据表
Rows : 4,639,162
Reserved : 7,183,216 KB
Data : 5,978,536 KB
Index Size : 1,199,840 KB
Unused : 4,840 KB
我已将sp_spaceused 'TableName'
用于此统计信息。
表信息如下所示
index_name index_description index_keys
IX_tbl_tablename_1 nonclustered located on PRIMARY lng_clientid, str_facility_mims, str_group, str_eq_circ_id, int_tml_no
IX_tbl_tablename_fullreport nonclustered located on PRIMARY str_eq_circ_id, str_facility, str_group
IX_tbl_tablename_lng_clientid nonclustered located on PRIMARY lng_clientid
PK_tbl_tablename_1 clustered, unique, primary key located on PRIMARY lng_id, lng_clientid
我不是索引专家,但这些索引似乎没问题吗?
编辑:我担心创建不同的索引并且有一些共同的列。例如:Clustered Index是使用lngid和clientid创建的,但是只有clientid才有非聚集索引。好吧?