Please sign in to comment.
Added NONCLUSTERED INDEX on EventSourceId in table [dbo].[Events] in …
…TableCreationScript When running the following query without index: SELECT [Id], [EventSourceId], [Name], [Version], [TimeStamp], [Data], [Sequence] FROM [Events] WHERE [EventSourceId] = @EventSourceId AND [Sequence] >= @EventSourceMinVersion AND [Sequence] <= @EventSourceMaxVersion ORDER BY [Sequence] On an eventstore with 1074011 records the result takes 28235 milliseconds. With index created it takes: 62 milliseconds
- Loading branch information...
Showing with 2 additions and 0 deletions.