Do not create main collection info when creating queryPlannerParams for $lookup SBE pushdown

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Fixed
    • Priority: Major - P3
    • 8.3.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Query Execution
    • Fully Compatible
    • QE 2026-01-19
    • 200
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Determining whether a $lookup query can be pushed to SBE requires information about the foreign collection's indexes, which is known as secondary collection info. Currently, the queryPlannerParams construction pre-computes index information for the main collection even if no $lookup is present, a decision that is inefficient because the information is either entirely unused when a $lookup is absent, or irrelevant to the push-down decision when a $lookup is present, as that decision relies solely on the foreign collection's indexes. Removing this redundant pre-computation of the main collection's index information is necessary to improve overall performance.

            Assignee:
            Foteini Alvanaki
            Reporter:
            Foteini Alvanaki
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: