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

Use trivial BSON conversion for sort key generation

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.3.1
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None
    • Fully Compatible
    • Query 2019-11-18
    • 0

      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.

            Assignee:
            justin.seyster@mongodb.com Justin Seyster
            Reporter:
            justin.seyster@mongodb.com Justin Seyster
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: