Consider:
db.collection.find({a: {$size: n}})
If "n" is 1.5 or -2, no documents can match. Yet explain() shows a full scan. The query should be short-circuited and return no documents immediately.
Consider:
db.collection.find({a: {$size: n}})
If "n" is 1.5 or -2, no documents can match. Yet explain() shows a full scan. The query should be short-circuited and return no documents immediately.