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

avgObjSize documentation mistake (in one place)

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Minor - P4 Minor - P4
    • Server_Docs_20231030
    • Affects Version/s: None
    • Component/s: manual
    • Labels:
      None

      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).

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

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

              Created:
              Updated:
              Resolved:
              8 years, 4 weeks, 6 days ago