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

Comment on: "manual/core/object-id.txt"

    XMLWordPrintable

    Details

    • Last comment by Customer:
      true

      Description

      the documentation says:

      Sorting on an _id field that stores ObjectId values is equivalent to sorting by creation time.

      that does not seem to be the case, e.g. I have the following keys (in insertion order), when sorted by _id, they do not reflect insertion time:

      _id insertion_time.to_i
      "50999c8c91e3783e0e000001", 1352244364
      "50999c8c91e3783e0e000002", 1352244364
      "50999c8c91e3783df4000001", 1352244364 <-- _id not larger than pervious _id
      "50999c8c91e3783e08000001", 1352244364
      "50999c8c91e3783e08000002", 1352244364
      "50999c8c91e3783e50000001", 1352244364
      "50999c8d91e3783e0e000003", 1352244365
      "50999c8d91e3783e0e000004", 1352244365
      "50999c8d91e3783e21000001", 1352244365
      "50999c8d91e3783e21000002", 1352244365

      Reporter: Tilo S

        Attachments

          Activity

            People

            Assignee:
            sam.kleinman Sam Kleinman (Inactive)
            Reporter:
            tilo2 Tilo S
            Participants:
            Last commenter:
            Jonathan Dahl Jonathan Dahl
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Days since reply:
              8 years, 30 weeks, 6 days ago
              Date of 1st Reply: