Skip to content

Commit ca30964

Browse files
authored
DOCS-15997 Plan Cache Size parameter (#3282)
* DOCS-15997 planCacheSize Parameter SBE (#3254) * DOCS-15997 planCacheSize Parameter SBE * JA feedback * DS feedback * DS feedback + move to 6.3 release notes * merge conflicts * merge conflicts
1 parent 687dd53 commit ca30964

File tree

3 files changed

+0
-59
lines changed

3 files changed

+0
-59
lines changed

source/reference/parameters.txt

Lines changed: 0 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -4869,44 +4869,3 @@ Transaction Parameters
48694869
.. code-block:: javascript
48704870

48714871
db.adminCommand( { setParameter: 1, shouldMultiDocTxnCreateCollectionAndIndexes: false } )
4872-
4873-
Slot-Based Execution Parameters
4874-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
4875-
4876-
.. parameter:: planCacheSize
4877-
4878-
.. versionadded:: 5.1
4879-
4880-
*Type*: string
4881-
4882-
*Default*: 5%
4883-
4884-
|mongod-only|
4885-
4886-
Sets the size of the :ref:`plan cache
4887-
<read-operations-query-optimization>` for the slot based query
4888-
execution engine.
4889-
4890-
You can set the :parameter:`planCacheSize` value to either:
4891-
4892-
- A percentage of the system's total physical memory to allocate for
4893-
the plan cache. For example, ``"8.5%"``.
4894-
4895-
- The exact amount of data to allocate for the plan cache in either
4896-
``MB`` or ``GB``. For example, ``"100MB"`` or ``"1GB"``.
4897-
4898-
.. include:: /includes/fact-sbe-plan-cache-motivation.rst
4899-
4900-
The following startup command sets :parameter:`planCacheSize` to 80
4901-
megabytes:
4902-
4903-
.. code-block:: bash
4904-
4905-
mongod --setParameter planCacheSize="80MB"
4906-
4907-
You can also use the :dbcommand:`setParameter` command within the
4908-
:mongosh:`MongoDB Shell </>`:
4909-
4910-
.. code-block:: javascript
4911-
4912-
db.adminCommand( { setParameter: 1, planCacheSize: "80MB" } )

source/release-notes/5.1.txt

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -148,15 +148,6 @@ new fields are included in the query explain plan output.
148148
- If the new query execution engine is used, new fields are included in
149149
the :ref:`query explain plan output <explain-results-5.1-later>`.
150150

151-
Set Slot-Based Query Execution Plan Cache Size
152-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
153-
154-
You can set the size of the :ref:`plan cache
155-
<read-operations-query-optimization>` for the new query engine with the
156-
:parameter:`planCacheSize` parameter.
157-
158-
.. include:: /includes/fact-sbe-plan-cache-motivation.rst
159-
160151
.. _5.1-rel-notes-change-streams:
161152

162153
Change Streams

source/release-notes/6.0.txt

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -553,15 +553,6 @@ conditions are met.
553553

554554
For more information, see :ref:`sbe-pipeline-optimizations`.
555555

556-
Set |sbe-title| Plan Cache Size
557-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
558-
559-
You can set the size of the :ref:`plan cache
560-
<read-operations-query-optimization>` for the new query engine with the
561-
:parameter:`planCacheSize` parameter.
562-
563-
.. include:: /includes/fact-sbe-plan-cache-motivation.rst
564-
565556
Stable API
566557
----------
567558

0 commit comments

Comments
 (0)