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

Use trivial BSON conversion for sort key generation

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 4.3.1
    • None
    • None
    • None
    • Fully Compatible
    • Query 2019-11-18
    • 0

    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

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: