Add indices to HardwareCheck model
This commit is contained in:
1 parent
91e7229b23
commit
ce3e7cf384
1 file changed
+2
@@ -64,5 +64,7 @@ const HardwareCheckSchema = mongoose.Schema(
|
||||
);
|
||||
|
||||
HardwareCheckSchema.index({ createdAt: 1 });
|
||||
HardwareCheckSchema.index({ monitorId: 1, createdAt: 1 });
|
||||
HardwareCheckSchema.index({ monitorId: 1, createdAt: -1 });
|
||||
|
||||
export default mongoose.model("HardwareCheck", HardwareCheckSchema);
|
||||
Reference in new issue
Block a user