[SERVER-70350] Move sort to end of TSBS finance queries Created: 07/Oct/22  Updated: 18/Oct/22  Resolved: 18/Oct/22

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

Type: Improvement Priority: Major - P3
Reporter: Gregory Noma Assignee: Gregory Noma
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Sprint: Execution Team 2022-10-17, Execution Team 2022-10-31
Participants:

 Description   

In the TSBS finance queries, currently after doing the open/high/low/close we do a sort on _id.time. However, this sort isn't actually needed here since the subsequent $setWindowFields stages already explicitly order by _id.time. So, we can move this sort to the end of the pipeline.



 Comments   
Comment by Gregory Noma [ 18/Oct/22 ]

https://github.com/gregorynoma/tsbs/commit/e7ae72edc1f09c3c12874d6496083a8590428dc7

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