Mongodb { $ne: null } VS { $exists }

Viewed 432

The $ne-like queries are not very selective. Is it better to use $exists when trying to filter on documents where we want the nested document to have any value at all ? Or is it the same in terms of performance ?

0 Answers
Related