[SERVER-82641] Only materialize result doc once in buildUnwind() Created: 31/Oct/23  Updated: 29/Nov/23  Resolved: 21/Nov/23

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

Type: Improvement Priority: Major - P3
Reporter: Kevin Cherkauer Assignee: Kevin Cherkauer
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: File bf30701.sv82641_partial_fix.numbers    
Issue Links:
Problem/Incident
Assigned Teams:
Query Execution
Backwards Compatibility: Fully Compatible
Participants:
Linked BF Score: 35

 Description   

From justin.seyster@mongodb.com 's code review of SERVER-80563 PR 15298, in reference to sbe_stage_builder.cpp buildUnwind():

"$unwind stages that request an index will need to materialize a BSON document twice: once to add the index and once to add the unwound field. Would it be practical to use one generateProject call that adds both fields in the same path?"

This ticket is to address that issue.



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

Author:

{'name': 'Kevin Cherkauer', 'email': 'kevin.cherkauer@mongodb.com', 'username': 'kevin-cherkauer'}

Message: SERVER-82641 Only materialize result doc once in buildUnwind()
Branch: master
https://github.com/mongodb/mongo/commit/a38a340dca5c4e240292e00aa0da8b323b01c320

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