> db.foo.insert({})
> db.foo.find(
)
{ "_id" : ObjectId("4bfd52c6deec96b27dbb35da") }> db.foo.ensureIndex(
{a:1})
> db.foo.find(
)
> db.foo.find(
).explain()
{
"cursor" : "BtreeCursor a_1",
"indexBounds" : [
[
,
{ "a" : null } ]
],
"nscanned" : 0,
"nscannedObjects" : 0,
"n" : 0,
"millis" : 0,
"oldPlan" : {
"cursor" : "BtreeCursor a_1",
"indexBounds" : [
[
,
{ "a" : null } ]
]
},
"allPlans" : [
{
"cursor" : "BtreeCursor a_1",
"indexBounds" : [
[
,
{ "a" : null } ]
]
}
]
}
- related to
-
SERVER-5481 query on undefined field matches empty array
- Closed