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

Lazily calculate QuerySolution hash for SBE

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 8.0.0-rc0
    • Affects Version/s: None
    • Component/s: Performance
    • Labels:
    • Query Execution
    • Fully Compatible

      The SBE getExecutor path calculates QSN hashes early. These are used in the plan explainer. However we still have the QSN in the plan explainer, so we could lazily calculate the hash to avoid wasted work in the non-explain path.

      I'm guessing the perf improvement is small, but still good to do for cleanliness and avoiding "death by a thousand cuts" pattern we see in perf charts.

       

            Assignee:
            evan.bergeron@mongodb.com Evan Bergeron
            Reporter:
            matt.boros@mongodb.com Matt Boros
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: