Skip to content

Commit b540893

Browse files
(DOCSP-20521): Add example command to modify minSnapshots paraam (#400)
1 parent aa20043 commit b540893

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

source/tutorial/long-running-queries.txt

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,15 @@ the snapshot retention period. To specify how long WiredTiger keeps the
166166
snapshot history, modify the
167167
:parameter:`minSnapshotHistoryWindowInSeconds` parameter.
168168

169+
.. example::
170+
171+
The following command sets ``minSnapshotHistoryWindowInSeconds`` to
172+
``600`` seconds:
173+
174+
.. code-block:: javascript
175+
176+
db.adminCommand( { setParameter: 1, minSnapshotHistoryWindowInSeconds: 600 } )
177+
169178
Increasing the value of :parameter:`minSnapshotHistoryWindowInSeconds`
170179
increases disk usage because the server must maintain the history of
171180
older modified values within the specified time window. The amount of

0 commit comments

Comments
 (0)