Skip to content

Commit

Permalink
feat(mongo-modals): Added more indexes
Browse files Browse the repository at this point in the history
  • Loading branch information
TriPSs committed Sep 26, 2020
1 parent 925c966 commit 8e0ce23
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions libs/packages/mongo-models/src/movie/movie.schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,8 @@ export const movieSchema = (new Schema(
)).index({
'watched.complete': 1,
'rating.watching': 1
}).index({
'rating.watching': 1
}).index({
'bookmarked': 1
})
2 changes: 2 additions & 0 deletions libs/packages/mongo-models/src/show/show.schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,6 @@ export const showSchema = (new Schema(
}
)).index({
'rating.watching': 1
}).index({
'bookmarked': 1
})

0 comments on commit 8e0ce23

Please sign in to comment.