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

Do not produce search metadata if it is not used

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 7.3.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Query Execution
    • Fully Compatible
    • QE 2023-12-25, QE 2024-01-08, QE 2024-01-22

      Detect if $meta is used in the query, and not to produce search metadata slots if it is not used.

      It is hard because $meta can be used in non-pushdown pipeline stages, but the SBE plan is cached before when $meta is not used (the SBE query is same).

            Assignee:
            zixuan.zhuang@mongodb.com Zixuan Zhuang
            Reporter:
            zixuan.zhuang@mongodb.com Zixuan Zhuang
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: