Lab notes
A temporary index on IMDb votes reduced the documents examined from 21,349 to 12 for the test query. Other queries combined release year, genre, language and rating filters.
I queried the sample_mflix collection and compared how much work MongoDB did with and without an index.
A temporary index on IMDb votes reduced the documents examined from 21,349 to 12 for the test query. Other queries combined release year, genre, language and rating filters.