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

MMAPv1 re-use of space after dropping a collection

    • Type: Icon: Task Task
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • Server_Docs_20231030
    • Affects Version/s: None
    • Component/s: manual
    • Labels:
      None

      In Docs: How do I reclaim disk space? when I drop a collection from a database

      You do not need to reclaim disk space for MongoDB to reuse freed space.

      Further in the Empty Records section section:

      MongoDB maintains lists of empty records in data files as it deletes documents and collections. MongoDB can reuse this space, but will not, by default, return this space to the operating system.

      Improvement Required:

      We need to explicitly mention that:

      "The space will be reused by other collections in the same database only and not by the collections in the other databases as each database in MMAPv1 has a separate file."

            Assignee:
            stephen.steneker@mongodb.com Stennie Steneker (Inactive)
            Reporter:
            ankur.raina@mongodb.com Ankur Raina (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:
              6 years, 28 weeks, 1 day ago