Hello,
having collection with compound _id field: {_id:{i:1, k:2}, data:"bar"}
// nothing found
collection.find_one({'_id':{"i" : 1, "k" : 2}})
// found, but slow, because index on _id object is not used
collection.find_one({"_id.i" : 1, "_id.k" : 2})
is this bug in pymongo? why the first query doesn't work otherwise?
Thanks
Jeff