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)
112
112
instance . EventSubscriptions . Indexes . CreateOne ( new CreateIndexModel < EventSubscription > (
113
113
Builders < EventSubscription > . IndexKeys
114
114
. Ascending ( x => x . EventKey )
115
- . Ascending ( x => x . EventName )
116
- . Ascending ( x => x . SubscribeAsOf )
117
- . Ascending ( x => x . ExternalToken ) ,
115
+ . Ascending ( x => x . EventName ) ,
118
116
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" } ) ) ;
119
125
120
126
instance . ScheduledCommands . Indexes . CreateOne ( new CreateIndexModel < ScheduledCommand > (
121
127
Builders < ScheduledCommand > . IndexKeys
You can’t perform that action at this time.
0 commit comments