add indexes

This commit is contained in:
Alex Holliday committed 2026-01-13 22:56:51 +00:00
1 parent 52e598a66e
commit 8a986d2e58
6 files changed
+28 -11

No files matched your search

+2
View File
@@ -288,7 +288,9 @@ const CheckSchema = new Schema<CheckDocument>(
CheckSchema.index({ updatedAt: 1 });
CheckSchema.index({ "metadata.monitorId": 1, updatedAt: 1 });
CheckSchema.index({ "metadata.monitorId": 1, updatedAt: -1 });
CheckSchema.index({ "metadata.monitorId": 1, createdAt: -1 });
CheckSchema.index({ "metadata.teamId": 1, updatedAt: -1 });
CheckSchema.index({ "metadata.teamId": 1, createdAt: -1 });
const CheckModel = model<CheckDocument>("Check", CheckSchema);