[DOCS-2784] coll.stats().size Created: 25/Feb/14  Updated: 04/Mar/15  Resolved: 05/Mar/14

Status: Closed
Project: Documentation
Component/s: manual
Affects Version/s: None
Fix Version/s: v1.3.2

Type: Improvement Priority: Minor - P4
Reporter: Alexander Komyagin Assignee: Sam Kleinman (Inactive)
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Participants:
Days since reply: 9 years, 50 weeks ago

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



 Comments   
Comment by Alexander Komyagin [ 05/Mar/14 ]

Awesome. Thanks, Sam!

Comment by Githook User [ 05/Mar/14 ]

Author:

{u'username': u'tychoish', u'name': u'Sam Kleinman', u'email': u'samk@10gen.com'}

Message: DOCS-2784: clarify collStats.size description
Branch: master
https://github.com/mongodb/docs/commit/88747e3ba7c75cd3eb63d2366abb3d719ce6f06e

Comment by Githook User [ 05/Mar/14 ]

Author:

{u'username': u'tychoish', u'name': u'Sam Kleinman', u'email': u'samk@10gen.com'}

Message: DOCS-2784: clarify collStats.size description
Branch: v2.4
https://github.com/mongodb/docs/commit/2b5b5e8edf64ad12f838ca2f481dc8e83a7815c5

Generated at Thu Feb 08 07:44:15 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.