[SERVER-81527] Add QuerySettings to $planCacheStats output Created: 28/Sep/23  Updated: 29/Oct/23  Resolved: 20/Oct/23

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

Type: Task Priority: Major - P3
Reporter: Denis Grebennicov Assignee: Denis Grebennicov
Resolution: Fixed Votes: 0
Labels: M3
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
depends on SERVER-79181 Apply QuerySettings for find commands Closed
Problem/Incident
Assigned Teams:
Query Execution
Backwards Compatibility: Fully Compatible
Sprint: QE 2023-10-30
Participants:
Linked BF Score: 60

 Description   

Currently $planCacheStats logic serializes only PlanCacheEntries as result of this stage and QuerySettings are not present there, because they are part of the key.

Having QuerySettings as part of $planCacheStats would help during diagnostics, therefore it would be valuable to have it there.

In order to achieve that we could modify the serializer of the PlanCacheEntries and let it take PlanCacheKey as well. Then we would include PlanCacheKey.QuerySettings into the serialized output.



 Comments   
Comment by Githook User [ 20/Oct/23 ]

Author:

{'name': 'Denis Grebennicov', 'email': 'denis.grebennicov@mongodb.com', 'username': 'denis631'}

Message: SERVER-81527 Add QuerySettings to $planCacheStats output
Branch: master
https://github.com/mongodb/mongo/commit/fed9250f61bf407e96091a1d97d3a12bb236f95f

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