|
|
|
|
|
by mathias_10gen
5472 days ago
|
|
FYI - Your _id trick is similar to the ObjectID type mongodb uses by default. "A BSON ObjectID is a 12-byte value consisting of a 4-byte timestamp (seconds since epoch), a 3-byte machine id, a 2-byte process id, and a 3-byte counter. Note that the timestamp and counter fields must be stored big endian unlike the rest of BSON. This is because they are compared byte-by-byte and we want to ensure a mostly increasing order." http://www.mongodb.org/display/DOCS/Object+IDs#ObjectIDs-BSO... |
|