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

Improve the check for unpack stage compatibility with SBE

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 7.2.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Query Integration
    • Fully Compatible
    • QI 2023-11-13

      Currently, in DocumentSourceInternalUnpackBucket::isSbeCompatible() we consider the unpack stage to be incompatible with SBE if there is an incompatible expr anywhere in the pipeline. This would prevent the stage from lowering to SBE if there are stages later in the pipeline that use expressions, not compatible with SBE.

      This would complicate the test matrix (especially for perf) and potentially confuse the end-users and support as lowering of bucket unpacking will be affected by unrelated parts of the pipeline.

            Assignee:
            gil.alon@mongodb.com Gil Alon
            Reporter:
            irina.yatsenko@mongodb.com Irina Yatsenko (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: