Details
-
Bug
-
Resolution: Unresolved
-
Minor - P4
-
None
-
4.0.17
-
None
-
Query Optimization
-
ALL
-
Description
Both find and aggregate will perform a scan when the search criteria is {$in: [ ]} and the searched field is not indexed.
IMHO the query should either immediately return zero documents or throw an error due to the empty array.
Attachments
Issue Links
- is related to
-
SERVER-3337 $all with an empty array should return all documents rather than no documents
-
- Backlog
-