File tree Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Original file line number Diff line number Diff line change @@ -84,6 +84,25 @@ intervals or condition:
84
84
85
85
.. include:: /includes/extracts/wt-journal-frequency.rst
86
86
87
+ .. _faq-wt-reclaim-disk-space:
88
+
89
+ How do I reclaim disk space in WiredTiger?
90
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
91
+
92
+ The WiredTiger storage engine maintains lists of empty records in data
93
+ files as it deletes documents. This space can be reused by WiredTiger,
94
+ but will not be returned to the operating system unless under very
95
+ specific circumstances.
96
+
97
+ The amount of empty space available for reuse by WiredTiger is reflected
98
+ in the output of :method:`db.collection.stats()` under the heading
99
+ ``wiredTiger.block-manager.file bytes available for reuse``.
100
+
101
+ To allow the WiredTiger storage engine to release this empty space to the
102
+ operating system, you can de-fragment your data file. This can be achieved
103
+ using the :dbcommand:`compact` command. For more information on its behavior
104
+ and other considerations, see :dbcommand:`compact`.
105
+
87
106
MMAPv1 Storage Engine
88
107
---------------------
89
108
You can’t perform that action at this time.
0 commit comments