Skip to content

Commit

Permalink
feat(mongo-modals): Added new indexes
Browse files Browse the repository at this point in the history
  • Loading branch information
TriPSs committed Sep 25, 2020
1 parent f46c55a commit e1dbde0
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
4 changes: 2 additions & 2 deletions libs/packages/mongo-models/src/movie/movie.schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,6 @@ export const movieSchema = (new Schema(
collection: 'movies'
}
)).index({
title: 'text',
_id: 1
'watched.complete': 1,
'rating.watching': 1
})
3 changes: 3 additions & 0 deletions libs/packages/mongo-models/src/season/season.schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,7 @@ export const seasonSchema = (new Schema(
}
)).index({
showImdbId: 1,
}).index({
showImdbId: 1,
number: 1,
})
4 changes: 1 addition & 3 deletions libs/packages/mongo-models/src/show/show.schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,5 @@ export const showSchema = (new Schema(
collection: 'shows'
}
)).index({
title: 'text',
synopsis: 'text',
_id: 1
'rating.watching': 1
})

0 comments on commit e1dbde0

Please sign in to comment.