Uploaded image for project: 'C# Driver'
  1. C# Driver
  2. CSHARP-714

New AscendingGuidGenerator

    • Type: Icon: New Feature New Feature
    • Resolution: Done
    • Priority: Icon: Minor - P4 Minor - P4
    • 1.8.1
    • Affects Version/s: 1.8
    • Component/s: None
    • None

      Add a new generator for GUIDs that generates GUIDs in ascending order. The algorithm will be similar to that for ObjectIds, and the 16 bytes of the GUID will be generated as follows:

      8 bytes: Ticks from DateTime.UtcNow.Ticks
      3 bytes: hash of machine name
      2 bytes: low order bytes of process Id
      3 bytes: increment

      This is the same algorithm as generating an ObjectId except that a higher resolution 8 byte timestamp is used.

      NOTE: in order for these GUIDs to be considered ascending by the server they must be stored using the new GuidRepresentation.Standard representation for GUIDs.

            Assignee:
            sridhar Sridhar Nanjundeswaran
            Reporter:
            robert@mongodb.com Robert Stam
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: