[SERVER-70855] Update statistics in the cache after running analyze command Created: 25/Oct/22  Updated: 29/Oct/23  Resolved: 09/Nov/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: Misha Tyulenev
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Sprint: QO 2022-10-31, QO 2022-11-14
Participants:

 Description   

Currently statistics in the cache is not invalidated after analyze command, and hence its not updated. 
If statistics is updated in the collection the analyze command must invalidate the corresponding cache entry and so the stats entry will be updated on the next request.
If there are old copies of statistics they should not be deleted until optimizer finished using it.



 Comments   
Comment by Githook User [ 08/Nov/22 ]

Author:

{'name': 'Misha Tyulenev', 'email': 'misha.tyulenev@mongodb.com'}

Message: SERVER-70855 update statistics in the cache after running analyze
Branch: master
https://github.com/mongodb/mongo/commit/684acb71e9064aef555d6f44b2715b77cddd8c0b

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