Added index for creation of speechcollection
This commit is contained in:
parent
02c8de4459
commit
9796b1366c
1 changed files with 1 additions and 0 deletions
|
@ -291,6 +291,7 @@ public class MongoDBHandler {
|
|||
if (speechesCollection.listIndexes().into(new ArrayList<>()).size() == 1) {
|
||||
MongoDBHandler.createIndexForCollection(speechesCollection, "speakerId", true);
|
||||
MongoDBHandler.createIndexForCollection(speechesCollection, "speechKey", true);
|
||||
MongoDBHandler.createIndexForCollection(speechesCollection, "dateTime", false);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue