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

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

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • None
    • None
    • None
    • 0.25

    Description

      Think the documentation would be clearer if it explained that "storageSize" is the size of the file on disk. dataSize is the size of the uncompressed documents inside the collection. So in many cases dataSize can be larger than storageSize, This is counterintuitive.

      An example would help. Here e.g. create a db (db.stats = 0). Insert a single record (db.stats jumped up as storage is allocated). Now remove that record. storageSize is unchanged but dataSize goes back to 0.

      Attachments

        Activity

          People

            jonathan.destefano@mongodb.com Jonathan DeStefano
            joe.drumgoole@mongodb.com Joe Drumgoole (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              7 years, 27 weeks, 1 day ago