Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-27129

Does ObjectId type affect lookup performance?

    XMLWordPrintable

Details

    • Question
    • Status: Closed
    • Minor - P4
    • Resolution: Done
    • None
    • None
    • None

    Description

      If if I insert documents with `_id: ObjectId().toString()` (a 24chars string) or a base64 version of it `_id: base64(ObjectId().toString())` (16chars)

      Will this affect performance for lookups, compared to keeping the default ObjectId type?

      Attachments

        Activity

          People

            Unassigned Unassigned
            caub Cyril Auburtin
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: