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

Optimize SBE EOF plans when in $lookup stages of pipelines

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Major - P3 Major - P3
    • None
    • None
    • None
    • Query Optimization
    • QO 2024-02-05, QO 2024-02-19

    Description

      When planning left branch of `$lookup` stages in pipelines, an `EQ_LOOKUP` stage is put at the root, fed by whichever plan the planner came up with.

       

      If such inner plan is an EOF we shouldn't generate the `EQ_LOOKUP` one since that's a waste.

       

       

      Attachments

        Activity

          People

            backlog-query-optimization Backlog - Query Optimization
            c.alonso@mongodb.com Carlos Alonso Pérez
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: