Skip to content

Commit

Permalink
Add indices for PageSpeedCheck
Browse files Browse the repository at this point in the history
  • Loading branch information
ajhollid committed Jan 1, 2025
1 parent 350e560 commit 48e8c29
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Server/db/models/PageSpeedCheck.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);

0 comments on commit 48e8c29

Please sign in to comment.