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

avgObjSize documentation mistake (in one place)

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Minor - P4 Minor - P4
    • Server_Docs_20231030
    • None
    • manual
    • None

    Description

      The collStats command which is also used by db.collection.stats currently claims that avgObjSize is the average Object size; in fact, it's the object size, plus any padding.

      Please see the attached files, which display avgObjSize for power of 2 sizes allocation, as well as no padding allocation, for two collections with differently-sized documents in them (all of which are identical in size within a given collection).

      Attachments

        1. issueWithObjSize.js
          0.3 kB
        2. issueWithObjSize2.js
          0.4 kB

        Activity

          People

            steve.renaker@mongodb.com Steve Renaker (Inactive)
            william.cross William Cross
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              7 years, 45 weeks, 5 days ago