-
Type: Bug
-
Resolution: Done
-
Priority: Major - P3
-
Affects Version/s: 2.4.6, 2.4.7, 2.5.3
-
Component/s: Querying
-
Environment:Linux on PC
-
ALL
-
I have a collection having PushCtx.credentials and _id indexes.
According to base content a query of the kind
db.user.find({ _id: ObjectId('522f16d7594e4df1158b48f1'), "PushCtx.credentials": { $ne:
} })
may fail (the entry exists and the query does not return it)
Adding hint({_id : 1}) makes the query work
db.user.find({ _id: ObjectId('522f16d7594e4df1158b48f1'), "PushCtx.credentials": { $ne:
} }).hint({_id : 1})
{ "_id" : ObjectId("522f16d7594e4df1158b48f1"), (...) }This is a problem for me, as I do have to perform an update on that query, and that hint does not work in such a case