Skip to content

Commit

Permalink
create other indexes mentioned in troubleshooting section
Browse files Browse the repository at this point in the history
  • Loading branch information
niklasf committed May 13, 2021
1 parent 6068347 commit 9b99143
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions bin/mongodb/indexes.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,6 @@ db.challenge.createIndex(
{ seenAt: 1 },
{ partialFilterExpression: { status: 10, timeControl: { $exists: true }, seenAt: { $exists: true } } }
);

db.simul.createIndex({ hostId: 1 }, { partialFilterExpression: { status: 10 } });
db.simul.createIndex({ hostSeenAt: -1 }, { partialFilterExpression: { status: 10, featurable: true } });

0 comments on commit 9b99143

Please sign in to comment.