Creating custom Object ID in MongoDB

前端 未结 4 1248
攒了一身酷
攒了一身酷 2020-12-03 02:45

I am creating a service for which I will use MongoDB as a storage backend. The service will produce a hash of the user input and then see if that same hash (+ input) already

4条回答
  •  一向
    一向 (楼主)
    2020-12-03 03:05

    I just found out an answer to one of my questions, regarding indexing performance:

    If the _id's are in a somewhat well defined order, on inserts the entire b-tree for the _id index need not be loaded. BSON ObjectIds have this property.

    Source: http://www.mongodb.org/display/DOCS/Optimizing+Object+IDs

提交回复
热议问题