mirror of
https://github.com/zkldi/Tachi.git
synced 2026-10-01 11:28:13 +03:00
perf: add indexes to notifications db
This commit is contained in:
Vendored
+1
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user