Skip to content

Commit

Permalink
feat(index): add compound index to applicationID and closed
Browse files Browse the repository at this point in the history
  • Loading branch information
Julian Beisert authored and David Wennemaring committed Nov 25, 2020
1 parent 6c672a2 commit e5747e0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/whisp/whisp.schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,6 @@ export const whispSchema = new mongoose.Schema({
],
});

whispSchema.index({ applicationID: 1, closed: -1 });

mongoose.model('Whisp', whispSchema);

0 comments on commit e5747e0

Please sign in to comment.