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

coll.stats().size

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Done
    • Icon: Minor - P4 Minor - P4
    • v1.3.2
    • None
    • manual
    • None

    Description

      It's worth noting in our documentation, that collection.stats().size does not include record headers, hence you can see some serious discrepancy between storageSize and size when you have a lot of documents (headers are 16bytes per record).

      Attachments

        Activity

          People

            sam.kleinman Sam Kleinman (Inactive)
            alex.komyagin@mongodb.com Alexander Komyagin
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              9 years, 50 weeks ago