Add indices for PageSpeedCheck
This commit is contained in:
1 parent
350e560079
commit
48e8c29dd4
1 file changed
+2
@@ -105,5 +105,7 @@ PageSpeedCheck.pre("save", async function (next) {
|
||||
});
|
||||
|
||||
PageSpeedCheck.index({ createdAt: 1 });
|
||||
PageSpeedCheck.index({ monitorId: 1, createdAt: 1 });
|
||||
PageSpeedCheck.index({ monitorId: 1, createdAt: -1 });
|
||||
|
||||
export default mongoose.model("PageSpeedCheck", PageSpeedCheck);
|
||||
Reference in new issue
Block a user