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

Remove unnecessary variant from SortKeyGenerator hot path

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 8.0.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None
    • Query Optimization
    • Fully Compatible
    • QO 2024-03-18, QO 2024-04-01, QO 2024-04-15

      When extracting a sort key from a document, we need to handle the case where the Document storage uses backing BSON (returning BSONElement) vs Value. This runtime dispatch can be expensive (2-3% in certain sort heavy workloads) and should be possible to simplify at query planning time to always use the BSON or Value path.

            Assignee:
            nicholas.zolnierz@mongodb.com Nicholas Zolnierz
            Reporter:
            nicholas.zolnierz@mongodb.com Nicholas Zolnierz
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: