Skip to content

Instantly share code, notes, and snippets.

@quexy
Created September 3, 2013 08:55
Show Gist options
  • Save quexy/6421344 to your computer and use it in GitHub Desktop.
Save quexy/6421344 to your computer and use it in GitHub Desktop.
Naive SpecRun statistics store database indices
use SpecRun
create nonclustered index idx_events on
[Events] (Id, EventSourceId, Sequence, TimeStamp)
include (Version, Name, Data)
create nonclustered index idx_eventsources on
[EventSources] (Id, Type, Version)
create nonclustered index idx_pipelinestate on
[PipelineState] (PipelineName, BatchId, LastProcessedEventId)
create nonclustered index idx_testitems on
[TestItems] ([Id], [ProjectId], [LastExecution], [CreatedAt], [LastResult_Code], [State_Code], [SuccessFactor_Value], [SuccessFactor_TrendCode])
include ([Path], [LastResult_Value], [State_Value], [SuccessFactor_TrendValue], [TestHistory])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment