Does mongodb guarantee that the value of _id (ObjectId(...)) for each record is constantly increase and consequently the value of _id for each newly inserted record always greater than those already inserted records? If yes, is it true in a collection level or in a database level?
--
You received this message because you are subscribed to the Google
Groups "mongodb-user" group.
To post to this group, send email to mongod...@googlegroups.com
To unsubscribe from this group, send email to
mongodb-user...@googlegroups.com
See also the IRC channel -- freenode.net#mongodb
Adding to Adam's explanation, because the timestamp is pretty coarse grained (seconds) you should expect in most normal usage cases thay they are unique but while they are approximately increasing they won't be strictly increasing.
-- Max
--