mpaaRating with 1 and 0 instead of true and false


So, I experimented a little and it looks like we can do {mpaaRating: {$exists: 0}} or {mpaaRating: {$exists: 1}}

Does this provide any speed boost over the words true/false?

i think using 1/0 may be just a little faster compared to true/false. the query parser would need to look for the string token true/false instead of 1/0. Beyond that there shouldn’t be any difference.

Thanks @Manu_07553 for contributing.

Hi @Thomas_02341,

In addition to @Manu_07553.

Some of the optimizations barely offers any significant improvement in performance and hence you would not see them being used very oftenly.

That being said, good observation :slight_smile:

Shubham Ranjan
Curriculum Support Engineer