To build an index on MongoDB objectIds, I use db.collection.ensureIndex({ _id: "hashed"}).
This generates a Number type that the collection is indexed on. What is the algorithm that goes into this? Is it MD5? And how would I call it on ObjectID objects?
For example, I would like to do something like pull the top 10 _id hashes from a collection, and use that for processing.