[SERVER-61554] Do not discard results of cached plans with $group stages Created: 17/Nov/21  Updated: 29/Oct/23  Resolved: 30/Nov/21

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

Type: Task Priority: Major - P3
Reporter: Irina Yatsenko (Inactive) Assignee: Irina Yatsenko (Inactive)
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
Duplicate
is duplicated by SERVER-61734 Replanning check after trial ends can... Closed
Backwards Compatibility: Fully Compatible
Sprint: QE 2021-11-29, QE 2021-12-13
Participants:
Linked BF Score: 135

 Description   

SERVER-58429 allows lowering $group stages into the find subsystem in the situations of multi-planning and caching. However, the initial implementation does the runtime trials of the plans prior to extending them with the agg stages so it has to discard the results of the winning plan and the cached plan, even if the plan is accepted. The former we cannot easily fix but the latter should be fixable after SERVER-61046 is done.



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

Author:

{'name': 'Irina Yatsenko', 'email': 'irina.yatsenko@mongodb.com', 'username': 'IrinaYatsenko'}

Message: SERVER-61554 Preserve results from successful cache trials
Branch: master
https://github.com/mongodb/mongo/commit/7d79c8838582833cf5251ea56fcc3881a72556b0

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