-
Type: Bug
-
Resolution: Done
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: None
-
Labels:
-
Environment:
*Location*: https://docs.mongodb.com/manual/reference/command/repairDatabase/
*User-Agent*: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2743.116 Safari/537.36
*Referrer*: https://www.google.pl/
*Screen Resolution*: 1920 x 1200
The repairDatabase command compacts all collections in the database. It is identical to running the compact command on each collection individually.
repairDatabase reduces the total size of the data files on disk. It also recreates all indexes in the database.
My understanding is that compact does not free disk space on MMAP. If this is also the case with repairDatabase, I think it should be mentioned here.
- related to
-
DOCS-10590 Issues with repairDatabase documentation
- Closed