perf: add indexes to notifications db

This commit is contained in:
zkldi
2022-04-24 22:18:51 +01:00
parent 4b3074e48c
commit b65bdcb8f3
+1
View File
@@ -119,6 +119,7 @@ const staticIndexes: Partial<Record<Databases, Index[]>> = {
"arc-saved-profiles": [index({ userID: 1, forImportType: 1 }, UNIQUE)],
"score-blacklist": [index({ scoreID: 1 }, UNIQUE)],
migrations: [index({ migrationID: 1 }, UNIQUE)],
notifications: [index({ notifID: 1 }, UNIQUE), index({ sentTo: 1, sentAt: 1 })],
};
const indexes: Partial<Record<Databases, Index[]>> = staticIndexes;