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

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

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Done
    • Icon: Minor - P4 Minor - P4
    • None
    • None
    • None
    • None

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

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved:
              11 years, 36 weeks, 1 day ago