File tree Expand file tree Collapse file tree 2 files changed +10
-8
lines changed
manual/source/reference/command
v8.0/source/reference/command Expand file tree Collapse file tree 2 files changed +10
-8
lines changed Original file line number Diff line number Diff line change @@ -22,9 +22,10 @@ Definition
2222 files and continuously runs compaction if there is enough free storage space
2323 available.
2424
25- Before you enable ``autoCompact``, run the :dbcommand:`dbStats` command to
26- see if you have enough available storage space for compaction to proceed. If
27- the amount of available space returned by ``dbStats`` is less than
25+ Before you enable ``autoCompact``, run the :pipeline:`$collStats`
26+ aggregation stage with the ``storageStats: {}`` option to see if you have
27+ enough available storage space for compaction to proceed. If the amount of
28+ available space returned by ``freeStorageSize`` is less than
2829 ``freeSpaceTargetMB``, background compaction has no effect.
2930
3031Syntax
@@ -155,4 +156,4 @@ You cannot run ``autoCompact`` against a :binary:`~bin.mongos` instance.
155156Learn More
156157----------
157158
158- - :dbcommand:`compact`
159+ - :dbcommand:`compact`
Original file line number Diff line number Diff line change @@ -22,9 +22,10 @@ Definition
2222 files and continuously runs compaction if there is enough free storage space
2323 available.
2424
25- Before you enable ``autoCompact``, run the :dbcommand:`dbStats` command to
26- see if you have enough available storage space for compaction to proceed. If
27- the amount of available space returned by ``dbStats`` is less than
25+ Before you enable ``autoCompact``, run the :pipeline:`$collStats`
26+ aggregation stage with the ``storageStats: {}`` option to see if you have
27+ enough available storage space for compaction to proceed. If the amount of
28+ available space returned by ``freeStorageSize`` is less than
2829 ``freeSpaceTargetMB``, background compaction has no effect.
2930
3031Syntax
@@ -155,4 +156,4 @@ You cannot run ``autoCompact`` against a :binary:`~bin.mongos` instance.
155156Learn More
156157----------
157158
158- - :dbcommand:`compact`
159+ - :dbcommand:`compact`
You can’t perform that action at this time.
0 commit comments