[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: |
|
||||||||||||||||
| 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. |
| Comments |
| Comment by Githook User [ 30/Sep/22 ] |
|
Author: {'name': 'Alberto Massari', 'email': 'alberto.massari@mongodb.com', 'username': 'albymassari'}Message: |