Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCS-8713

Comment on: "manual/reference/command/repairDatabase.txt"

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Environment:

      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.

            Assignee:
            kay.kim@mongodb.com Kay Kim (Inactive)
            Reporter:
            bgsosh@gmail.com Scott Lowe
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:
              7 years, 34 weeks, 6 days ago