[SERVER-44701] Remove support for the plan cache introspection commands Created: 18/Nov/19  Updated: 29/Oct/23  Resolved: 26/Nov/19

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

Type: Task Priority: Major - P3
Reporter: David Storch Assignee: David Storch
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
Documented
is documented by DOCS-13247 Investigate changes in SERVER-44701: ... Closed
Related
related to SERVER-44859 plan_cache_index_create.js is blocked... Closed
Backwards Compatibility: Minor Change
Sprint: Query 2019-12-02
Participants:
Linked BF Score: 40

 Description   

These commands were deprecated in 4.2. They have been superseded by $planCacheStats, which has a superior output format and returns a cursor rather than a large document which could exceed the 16MB BSON size limit. Removing them will eliminate legacy code that the query team currently has to maintain.



 Comments   
Comment by Githook User [ 26/Nov/19 ]

Author:

{'email': 'david.storch@mongodb.com', 'name': 'David Storch', 'username': 'dstorch'}

Message: SERVER-44701 Remove support for 'planCacheListQueryShapes' and 'planCacheListPlans'.

As an alternative, use the $planCacheStats aggregation
stage. This metadata source, when placed first in the
pipeline, returns one document per plan cache entry for a
particular collection. This data can then be filtered,
projected, grouped, or otherwise processed with the full
power of MQL.
Branch: master
https://github.com/mongodb/mongo/commit/36ff260fe666489b8e8021882ee1ec3315526c92

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