[SERVER-80672] Improve the check for unpack stage compatibility with SBE Created: 31/Aug/23  Updated: 02/Nov/23  Resolved: 02/Nov/23

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 7.2.0-rc0

Type: Task Priority: Major - P3
Reporter: Irina Yatsenko (Inactive) Assignee: Gil Alon
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Assigned Teams:
Query Integration
Backwards Compatibility: Fully Compatible
Sprint: QI 2023-11-13
Participants:

 Description   

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.



 Comments   
Comment by Githook User [ 02/Nov/23 ]

Author:

{'name': 'Gil Alon', 'email': 'gil.alon@mongodb.com', 'username': 'galon1'}

Message: SERVER-80672 Lower bucket unpacking to SBE if the eventFilter is compatible with SBE
Branch: master
https://github.com/mongodb/mongo/commit/121cff564df6aa9165c1d875202e6ef7366173ab

Generated at Thu Feb 08 06:44:15 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.