[SERVER-51524] Alias internalQueryCacheSize to internalQueryCacheMaxEntriesPerCollection Created: 13/Oct/20  Updated: 29/Oct/23  Resolved: 06/Nov/20

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

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

Issue Links:
Related
is related to SERVER-40361 Reduce memory footprint of plan cache... Closed
Backwards Compatibility: Fully Compatible
Sprint: Query 2020-11-16
Participants:

 Description   

The server has a setParameter called internalQueryCacheSize which controls the maximum number of plan cache entries allowed in a single collection's plan cache. The parameter is poorly named, since it is not clear from the name whether the size is measured in number of entries or some other unit, such as bytes. It's also not clear that this is a maximum. And it's not clear whether the limit applies globally across all plan caches or whether the limit is per-collection.

In order to clarify some of these questions, we should rename internalQueryCacheSize to internalQueryCacheMaxEntriesPerCollection. This will also help avoid confusion after related ticket SERVER-40361 is implemented, since SERVER-40361 will introduce a separate plan cache size-related parameter called internalQueryCacheMaxSizeBytesBeforeStripDebugInfo. The rename proposed here will make sure that the two different plan cache size parameters cannot be easily confused with one another.

In order to avoid a breaking change for any user that has configured internalQueryCacheSize in a config file or on the command line, we continue to allow internalQueryCacheSize as a deprecated alias for{{internalQueryCacheMaxSizeBytesBeforeStripDebugInfo}}.



 Comments   
Comment by Githook User [ 06/Nov/20 ]

Author:

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

Message: SERVER-51524 Rename internalQueryCacheSize to internalQueryCacheMaxEntriesPerCollection

Retains "internalQueryCacheSize" as a deprecated alias.

The new name better reflects the function of the parameter,
as it controls the number of cache entries allowed for each
collection's cache rather than the overall size of the cache
in bytes.
Branch: master
https://github.com/mongodb/mongo/commit/5da1a52746a85a54b2809e8901da707a35d78e22

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