我正在优化我正在处理的SQL Server 2008数据库中的索引。现在我在“中央”桌上。多个索引与强制表扫描
本表共7列。它还有一个主键(当然),加上我以DESC顺序索引的日期戳。由于连接的性质,我相信需要6个索引(一些连接是超低基数的表或者不会被查询)。
但是,这张表大量写入。 6个指标的表现会很差(1表示2列指数)。查询可以针对大多数连接的表运行,所以我不知道如何删除任何索引。
有没有人知道确定如何平衡索引数量的最佳做法?
更新:
下面是表中的权益列:
MentionID int primary key
ParentID int indexed
ProfileID int indexed
SourceCategoryID tinyint indexed with next column
SourceID int
RoleplayerID int indexed
DateStamp smalldatetime indexed DESC
Subject nvarchar(1000)
KeyMessage nvarchar(1000)
SentimentID tinyint unindexed: low cardinality
ScopeID tinyint unindexed: low cardinality
你是怎么来的结论: “我相信6项指标要求”? – 2010-11-13 13:26:44