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 = [
211
211
" /release-notes/7.0" ,
212
212
" /release-notes/7.1" ,
213
213
" /release-notes/7.2" ,
214
+ " /release-notes/7.3" ,
214
215
" /replication" ,
215
216
" /security" ,
216
217
" /sharding" ,
Original file line number Diff line number Diff line change @@ -30,7 +30,10 @@ The command has the following syntax:
30
30
31
31
db.runCommand(
32
32
{
33
- compact: <collection name>
33
+ compact: <string>,
34
+ force: <flag>, // Optional
35
+ freeSpaceTargetMB: <int>, // Optional
36
+ comment: <any>, // Optional
34
37
}
35
38
)
36
39
@@ -39,7 +42,6 @@ Command Fields
39
42
40
43
The command takes the following fields:
41
44
42
-
43
45
.. list-table::
44
46
:header-rows: 1
45
47
:widths: 20 20 80
@@ -62,6 +64,17 @@ The command takes the following fields:
62
64
``compact`` to run on the :term:`primary` in
63
65
a :term:`replica set`. ``compact`` does not block
64
66
: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
65
78
66
79
* - ``comment``
67
80
- any
Original file line number Diff line number Diff line change @@ -75,6 +75,7 @@ EOL Releases
75
75
:maxdepth: 1
76
76
:hidden:
77
77
78
+ /release-notes/7.3
78
79
/release-notes/7.2
79
80
/release-notes/7.1
80
81
/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