-
Type: Bug
-
Resolution: Done
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: Server
-
Labels:None
The compact command doesn't free wasted space due to fragmentation under WiredTiger. I think this isn't clear from the documentation. Two suggested places to change:
Rewrites and defragments all data and indexes in a collection. On WiredTiger databases, this command will release unneeded disk space to the operating system.
Clarify that the "defragments" only applies to mmapv1, not to WT.
On WiredTiger, compact will rewrite the collection and indexes to minimize disk space by releasing unused disk space to the system. This is useful if you have removed a large amount of data from the collection, and do not plan to replace it.
Re-iterate that it may not reclaim unneeded disk space due to fragmentation.