Added index for creation of speechcollection

This commit is contained in:
vysitor 2025-03-23 17:42:49 +01:00
parent 02c8de4459
commit 9796b1366c

View file

@ -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);
}
}