Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCS-218

Document that the ObjectId "inc" field should start out randomized

    • Type: Icon: Task Task
    • Resolution: Done
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None

      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.)

            Assignee:
            sam.kleinman Sam Kleinman (Inactive)
            Reporter:
            glenn Glenn Maynard
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              11 years, 46 weeks, 3 days ago