We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 30f30f7 commit cf481c2Copy full SHA for cf481c2
src/Akka.Persistence.MongoDb/Journal/MongoDbJournal.cs
@@ -97,6 +97,15 @@ protected override void PreStart()
97
98
collection.Indexes
99
.CreateOne(modelWithOrdering);
100
+
101
+ var tagsWithOrdering = new CreateIndexModel<JournalEntry>(
102
+ Builders<JournalEntry>
103
+ .IndexKeys
104
+ .Ascending(entry => entry.Tags)
105
+ .Ascending(entry => entry.Ordering));
106
107
+ collection.Indexes
108
+ .CreateOne(tagsWithOrdering);
109
}
110
111
return collection;
0 commit comments