File tree Expand file tree Collapse file tree 2 files changed +17
-4
lines changed
src/providers/WorkflowCore.Persistence.MongoDB Expand file tree Collapse file tree 2 files changed +17
-4
lines changed Original file line number Diff line number Diff line change @@ -94,6 +94,19 @@ static void CreateIndexes(MongoPersistenceProvider instance)
94
94
Builders < Event > . IndexKeys . Ascending ( x => x . IsProcessed ) ,
95
95
new CreateIndexOptions { Background = true , Name = "idx_processed" } ) ) ;
96
96
97
+ instance . Events . Indexes . CreateOne ( new CreateIndexModel < Event > (
98
+ Builders < Event > . IndexKeys
99
+ . Ascending ( x => x . EventName )
100
+ . Ascending ( x => x . EventKey )
101
+ . Ascending ( x => x . EventTime ) ,
102
+ new CreateIndexOptions { Background = true , Name = "idx_namekey" } ) ) ;
103
+
104
+ instance . EventSubscriptions . Indexes . CreateOne ( new CreateIndexModel < EventSubscription > (
105
+ Builders < EventSubscription > . IndexKeys
106
+ . Ascending ( x => x . EventName )
107
+ . Ascending ( x => x . EventKey ) ,
108
+ new CreateIndexOptions { Background = true , Name = "idx_namekey" } ) ) ;
109
+
97
110
indexesCreated = true ;
98
111
}
99
112
}
Original file line number Diff line number Diff line change 14
14
<GenerateAssemblyConfigurationAttribute >false</GenerateAssemblyConfigurationAttribute >
15
15
<GenerateAssemblyCompanyAttribute >false</GenerateAssemblyCompanyAttribute >
16
16
<GenerateAssemblyProductAttribute >false</GenerateAssemblyProductAttribute >
17
- <Version >3.0.1 </Version >
17
+ <Version >3.0.2 </Version >
18
18
<Description >Provides support to persist workflows running on Workflow Core to a MongoDB database.</Description >
19
- <AssemblyVersion >3.0.1 .0</AssemblyVersion >
20
- <FileVersion >3.0.1 .0</FileVersion >
21
- <PackageVersion >3.0.1 </PackageVersion >
19
+ <AssemblyVersion >3.0.2 .0</AssemblyVersion >
20
+ <FileVersion >3.0.2 .0</FileVersion >
21
+ <PackageVersion >3.0.2 </PackageVersion >
22
22
</PropertyGroup >
23
23
24
24
<ItemGroup >
You can’t perform that action at this time.
0 commit comments