-
Type: Bug
-
Resolution: Done
-
Priority: Minor - P4
-
None
-
Affects Version/s: 2.5.5
-
Component/s: Querying
-
None
-
ALL
Saw this in repro'ing SERVER-12613. Stripped down version below.
db.col.drop(); db.col.insert({a:"test"}); db.col.ensureIndex({a:1}); var explainObj = db.col.find({ $or: [ { 'a' : "foo" }, { 'a' : "bar" } ] }).explain(); printjson( explainObj ) assert.eq(0, explainObj.nscannedObjectsAllPlans); assert.eq(0, explainObj.nscannedAllPlans); db.col.getPlanCache().clear(); explainObj = db.col.find({ $or: [ { 'a' : null }, { 'a' : null } ] }).explain(); printjson( explainObj ) assert.eq(0, explainObj.nscannedObjectsAllPlans); assert.eq(0, explainObj.nscannedAllPlans);
- is related to
-
SERVER-12529 incorrect explain output for covered $or with new query framework
- Closed