[SERVER-63604] Optimize _shouldProduceRecordIdSlot maintenance Created: 13/Feb/22  Updated: 29/Oct/23  Resolved: 30/Sep/22

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

Type: Task Priority: Major - P3
Reporter: Misha Tyulenev Assignee: Alberto Massari
Resolution: Fixed Votes: 0
Labels: pm2697-m3
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
is duplicated by SERVER-68903 Implement SORT_SIMPLE RID optimizatio... Closed
Gantt Dependency
has to be done before SERVER-60051 Pushdown sbe compatible stages after ... Closed
Backwards Compatibility: Fully Compatible
Sprint: QE 2022-09-19, QE 2022-10-03
Participants:
Story Points: 2

 Description   

_shouldProduceRecordIdSlot is set to indicate if $project stage needs to produce recordId slot. If the $group stage is present the plan then it will not have recordId. Since buildProjectionDefault() is expected to be called first because it's the root (top) stage in the plan and because childReqs aren't updated by the child stage (by a $group stage) the flag _shouldProduceRecordIdSlot must be set in advance.
Investigate if its viable to update childReqs by the child stage and if its not possible then have only one traversal of the plan tree to set _shouldProduceRecordIdSlot.



 Comments   
Comment by Githook User [ 30/Sep/22 ]

Author:

{'name': 'Alberto Massari', 'email': 'alberto.massari@mongodb.com', 'username': 'albymassari'}

Message: SERVER-63604 Optimize detection of the need to produce/propagate RecordId slots in SBE
Branch: master
https://github.com/mongodb/mongo/commit/459f574b8a4afd9e2e843c625f2ee4b726da12f3

Generated at Thu Feb 08 05:58:11 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.