File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed
src/providers/WorkflowCore.Persistence.MongoDB/Services Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -112,10 +112,16 @@ static void CreateIndexes(MongoPersistenceProvider instance)
112112 instance . EventSubscriptions . Indexes . CreateOne ( new CreateIndexModel < EventSubscription > (
113113 Builders < EventSubscription > . IndexKeys
114114 . Ascending ( x => x . EventKey )
115- . Ascending ( x => x . EventName )
116- . Ascending ( x => x . SubscribeAsOf )
117- . Ascending ( x => x . ExternalToken ) ,
115+ . Ascending ( x => x . EventName ) ,
118116 new CreateIndexOptions { Background = true , Name = "idx_namekey_v2" } ) ) ;
117+
118+ instance . EventSubscriptions . Indexes . CreateOne ( new CreateIndexModel < EventSubscription > (
119+ Builders < EventSubscription > . IndexKeys . Ascending ( x => x . SubscribeAsOf ) ,
120+ new CreateIndexOptions { Background = true , Name = "idx_subscribe" } ) ) ;
121+
122+ instance . EventSubscriptions . Indexes . CreateOne ( new CreateIndexModel < EventSubscription > (
123+ Builders < EventSubscription > . IndexKeys . Ascending ( x => x . ExternalToken ) ,
124+ new CreateIndexOptions { Background = true , Name = "idx_token" } ) ) ;
119125
120126 instance . ScheduledCommands . Indexes . CreateOne ( new CreateIndexModel < ScheduledCommand > (
121127 Builders < ScheduledCommand > . IndexKeys
You can’t perform that action at this time.
0 commit comments