Mongodb can't find object with too long _id -
i have little bit strange situation.
i persist objects in collection "refs" explicitly setting _id. have objects big id's.
db.refs.find().sort({_id: -1}); // {_id: 9200000000165761625} // ...
but when try find object biggest id in mongo shell returns nothing:
db.refs.find({_id: 9200000000165761625}); // nothing
but!
db.refs.find({_id: 9200000000165761625}).count(); // return 1
how happen?
i not reproduce problem. able query on _id value specified.
ensure when querying passing correct collection name
Comments
Post a Comment