Skip to content

Commit 8e0ce23

Browse files
committed
feat(mongo-modals): Added more indexes
1 parent 925c966 commit 8e0ce23

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

libs/packages/mongo-models/src/movie/movie.schema.ts

+4
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,8 @@ export const movieSchema = (new Schema(
2323
)).index({
2424
'watched.complete': 1,
2525
'rating.watching': 1
26+
}).index({
27+
'rating.watching': 1
28+
}).index({
29+
'bookmarked': 1
2630
})

libs/packages/mongo-models/src/show/show.schema.ts

+2
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,6 @@ export const showSchema = (new Schema(
2828
}
2929
)).index({
3030
'rating.watching': 1
31+
}).index({
32+
'bookmarked': 1
3133
})

0 commit comments

Comments
 (0)