When preparing SBE plan, correctly pass preparingFromCache argument

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Fixed
    • Priority: Major - P3
    • 7.2.1, 7.3.0-rc0, 7.0.6
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • v7.2, v7.0
    • QE 2023-12-11
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      prepareSlotBasedExecutableTree function has preparingFromCache argument, which should mean if the plan is from plan cache or not.

      However, if there is only one solution to the query, we unconditionally pass true to it, even if the plan is not actually cached: https://github.com/mongodb/mongo/blob/7eb9602a2f25422d3e075c01140aa4c6b9141fbd/src/mongo/db/query/get_executor.cpp#L1569C1-L1569C1

       

              Assignee:
              Ivan Fefer
              Reporter:
              Ivan Fefer
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: