[SERVER-55874] Optimize any child expressions in $setWindowFields Created: 07/Apr/21  Updated: 29/Oct/23  Resolved: 20/Apr/21

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

Type: Task Priority: Major - P3
Reporter: Nicholas Zolnierz Assignee: Yuhong Zhang
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Sprint: Query Optimization 2021-04-19, Query Optimization 2021-05-03
Participants:

 Description   

Similar to $group, we should override the optimize() method to optimize any expressions that are held by the stage:

https://github.com/mongodb/mongo/blob/bb6b69cd9223649aa27d67cd9a157e7e199e0f03/src/mongo/db/pipeline/document_source_group.cpp#L258



 Comments   
Comment by Githook User [ 20/Apr/21 ]

Author:

{'name': 'Yuhong Zhang', 'email': 'danielzhangyh@gmail.com', 'username': 'YuhongZhang98'}

Message: SERVER-55874 Optimize any child expressions in $setWindowFields
Branch: master
https://github.com/mongodb/mongo/commit/91dded9f92394f648bc143dbfeed231efccda846

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