[DOCS-218] Document that the ObjectId "inc" field should start out randomized Created: 10/Jun/12  Updated: 08/Sep/12  Resolved: 12/Jun/12

Status: Closed
Project: Documentation
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Improvement Priority: Minor - P4
Reporter: Glenn Maynard Assignee: Sam Kleinman (Inactive)
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Participants:
Days since reply: 11 years, 36 weeks, 1 day ago

 Description   

The "inc" field of ObjectId should start at a random value, not 0, to reduce the chances of collisions. The the Java driver and the core implementation do this, but the Python one doesn't. http://www.mongodb.org/display/DOCS/Object+IDs#ObjectIDs-BSONObjectIDSpecification should say that "inc" starts at a random value.

(I've sent a trivial patch to the Python driver to fix that issue; this ticket is only concerning the docs.)



 Comments   
Comment by Sam Kleinman (Inactive) [ 12/Jun/12 ]

I've updated the docs accordingly. Feel free to close this ticket, unless additional changes are required.

Comment by Sam Kleinman (Inactive) [ 11/Jun/12 ]

I spoke briefly with the Python driver team about this modification, and will update the documentation accordingly once we determine that this is the actual desired behavior, as well as the implemented behavior of the drivers.

Generated at Thu Feb 08 07:38:12 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.