Add indices for PageSpeedCheck

This commit is contained in:
Alex Holliday
2025-01-01 13:27:23 -08:00
parent 350e560079
commit 48e8c29dd4
+2
View File
@@ -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);