Skip to content

Commit

Permalink
add insight indexes
Browse files Browse the repository at this point in the history
  • Loading branch information
ornicar committed Nov 8, 2024
1 parent bfedfa2 commit 4a617cd
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions bin/mongodb/indexes.js
Original file line number Diff line number Diff line change
Expand Up @@ -313,3 +313,9 @@ db.study_chapter_flat.createIndex(
);
db.title_request.createIndex({ userId: 1 });
db.title_request.createIndex({ 'history.0.status.n': 1, 'history.0.at': 1 });

// you may want to run these on the insight database
// if it's a different one
db.insight.createIndex({ mr: 1, p: 1, c: 1 });
db.insight.createIndex({ mr: 1, a: 1 }, { partialFilterExpression: { mr: { $exists: true } } });
db.insight.createIndex({ u: 1, d: -1 });

0 comments on commit 4a617cd

Please sign in to comment.