我有一个如下创建的视图:-
CREATE VIEW [dbo].[vwNumberOfEditsForTimeSheets]
AS
SELECT TOP (100) PERCENT TimeSheetId, COUNT(TimeSheetId) AS NumberOfEdits
FROM dbo.TimeSheetLogs AS tsl
WHERE (StatusId = 27)
GROUP BY TimeSheetId
ORDER BY TimeSheetId
它现在可能有大约 1,00,000 个条目,并且每天会增加大约 500 到 1000 个。
哪种类型的索引最适合这种类型的视图?
谢谢