Details
-
Bug
-
Status: Closed
-
Major - P3
-
Resolution: Fixed
-
2.4.6, 2.4.7, 2.5.3
-
Linux on PC
-
ALL
-
Description
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