File tree Expand file tree Collapse file tree 4 files changed +50
-2
lines changed Expand file tree Collapse file tree 4 files changed +50
-2
lines changed Original file line number Diff line number Diff line change @@ -211,6 +211,7 @@ toc_landing_pages = [
211211 " /release-notes/7.0" ,
212212 " /release-notes/7.1" ,
213213 " /release-notes/7.2" ,
214+ " /release-notes/7.3" ,
214215 " /replication" ,
215216 " /security" ,
216217 " /sharding" ,
Original file line number Diff line number Diff line change @@ -30,7 +30,10 @@ The command has the following syntax:
3030
3131 db.runCommand(
3232 {
33- compact: <collection name>
33+ compact: <string>,
34+ force: <flag>, // Optional
35+ freeSpaceTargetMB: <int>, // Optional
36+ comment: <any>, // Optional
3437 }
3538 )
3639
@@ -39,7 +42,6 @@ Command Fields
3942
4043The command takes the following fields:
4144
42-
4345.. list-table::
4446 :header-rows: 1
4547 :widths: 20 20 80
@@ -62,6 +64,17 @@ The command takes the following fields:
6264 ``compact`` to run on the :term:`primary` in
6365 a :term:`replica set`. ``compact`` does not block
6466 :ref:`crud` on the database it is compacting.
67+
68+ * - ``freeSpaceTargetMB``
69+ - Integer
70+ - .. versionadded: 7.3
71+
72+ Optional. Specifies the minimum amount of storage space, in megabytes,
73+ that must be recoverable for compaction to proceed. Compaction proceeds
74+ only if the amount of free storage space available is greater than
75+ ``freeSpaceTargetMB``.
76+
77+ *Default:* 20
6578
6679 * - ``comment``
6780 - any
Original file line number Diff line number Diff line change @@ -75,6 +75,7 @@ EOL Releases
7575 :maxdepth: 1
7676 :hidden:
7777
78+ /release-notes/7.3
7879 /release-notes/7.2
7980 /release-notes/7.1
8081 /release-notes/7.0
Original file line number Diff line number Diff line change 1+ .. _release-notes-7.3:
2+
3+ =================================================
4+ Release Notes for MongoDB 7.3 (Release Candidate)
5+ =================================================
6+
7+ .. default-domain:: mongodb
8+
9+ .. contents:: On this page
10+ :local:
11+ :backlinks: none
12+ :depth: 1
13+ :class: twocols
14+
15+ .. include:: /includes/rapid-release-short.rst
16+
17+ General Changes
18+ ---------------
19+
20+ Compaction Improvements
21+ ~~~~~~~~~~~~~~~~~~~~~~~
22+
23+ Starting in MongoDB 7.3, the :dbcommand:`compact` command includes a new
24+ ``freeSpaceTargetMB`` option to specify the minimum amount of storage space, in
25+ megabytes, that must be recoverable for compaction to proceed.
26+
27+ .. toctree::
28+ :titlesonly:
29+ :hidden:
30+
31+ /release-notes/7.3-compatibility
32+
33+
You can’t perform that action at this time.
0 commit comments