[DOCS-4272] Comment on: "manual/faq/storage.txt" Created: 31/Oct/14  Updated: 11/Jan/17  Resolved: 27/Jul/16

Status: Closed
Project: Documentation
Component/s: manual
Affects Version/s: None
Fix Version/s: 01112017-cleanup

Type: Bug Priority: Minor - P4
Reporter: Mark Helmstetter Assignee: Unassigned
Resolution: Won't Fix Votes: 0
Labels: collector-298ba4e7
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Location: http://docs.mongodb.org/manual/faq/storage/#how-can-i-check-the-size-of-a-collection
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/38.0.2125.101 Safari/537.36
Referrer: http://www.google.com/url?q=http%3A%2F%2Fdocs.mongodb.org%2Fmanual%2Ffaq%2Fstorage%2F%23how-can-i-check-the-size-of-a-collection&sa=D&sntz=1&usg=AFQjCNHuHX7cmlfin5Qcbjr2w0NPDsoHqw
Screen Resolution: 1920 x 1200
repo: docs
source: faq/storage


Participants:
Days since reply: 7 years, 29 weeks ago

 Description   

The docs say:

db.collection.totalSize(): the data size plus the index size in bytes.

I believe that totalSize() is actually storageSize + totalIndexSize.

Here's the data from a sample collection and the calculations:

> db.auditMessage.dataSize()
19304319728
> db.auditMessage.storageSize()
19417829280
> db.auditMessage.totalIndexSize()
280322336
> db.auditMessage.totalSize()
19698151616

dataSize + totalIndexSize: 19304319728 + 280322336 = 19584642064

storageSize + totalIndexSize: 19417829280 + 280322336 = 19698151616



 Comments   
Comment by Emily Hall [ 27/Jul/16 ]

Closed for housekeeping on 7/27/2016 by Emily Hall.
If you require additional support, please open a new ticket for prioritization.
Thanks,
Emily

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