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

Remove determineBonsaiEligibility from the hot path of SBE engine

    • Type: Icon: Improvement Improvement
    • 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

      When running mongod with internalQueryFrameworkControl=trySbeEngine the server seems to spend unnecessary time in determineBonsaiEligibility function (under getExecutorFind).

      In the attached flame graph of FindProjectionThreeFields benchmark over a 100-document collection the function takes 3.11% (out of 9.28% for getExecutorFind).

      For larger collections this is probably a smaller issue, but it looks like unnecessary overhead for small collections queries. 

            Assignee:
            hana.pearlman@mongodb.com Hana Pearlman
            Reporter:
            milena.ivanova@mongodb.com Milena Ivanova
            Votes:
            0 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated:
              Resolved: