[SERVER-15163] Scale doesn't affect avgObjectSize value Created: 06/Sep/14  Updated: 06/Sep/14  Resolved: 06/Sep/14

Status: Closed
Project: Core Server
Component/s: Usability
Affects Version/s: 2.6.1
Fix Version/s: None

Type: Bug Priority: Minor - P4
Reporter: James Hartig Assignee: Unassigned
Resolution: Duplicate Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
duplicates SERVER-8617 db.stats(scale) and db.collection.sta... Closed
Operating System: ALL
Steps To Reproduce:

1) Run db.coll.stats() and observe avgObjectSize
2) Run db.coll.stats(1024) and observe unchanged avgObjectSize

Participants:

 Description   

The scale parameter in collStats() doesn't affect the avgObjectSize despite the docs explicitly saying that it does. I'm running 2.6.1 but I haven't seen any fixes related to this in any newer 2.6.x releases.



 Comments   
Comment by Ramon Fernandez Marina [ 06/Sep/14 ]

Thanks for your report fastest963. Looks like this ticket is a duplicate of SERVER-8617.

Comment by James Hartig [ 06/Sep/14 ]

Forgot examples:
.stats()

        "count" : 3,
        "size" : 65488,
        "avgObjSize" : 21829,
        "storageSize" : 51138560,
        "numExtents" : 8,
        "nindexes" : 5,

.stats(1024)

        "count" : 3,
        "size" : 63,
        "avgObjSize" : 21829,
        "storageSize" : 49940,
        "numExtents" : 8,
        "nindexes" : 5,

Generated at Thu Feb 08 03:37:08 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.