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

Use trivial BSON conversion for sort key generation

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.3.1
    • Component/s: None
    • Labels:
      None

      Description

      The SortKeyGenerator uses 'documentToBsonWithSortPaths()' to convert a Document to a BSONObj for the key generation slow path. In many cases, though, no conversion is necessary, and it's faster just to use the BSON that already exists within the Document.

      This change adds a function to perform this "trivial" conversion from Document to BSON when possible.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: