From 2bcc1007c077e0d9b2f241920180237973b6aae0 Mon Sep 17 00:00:00 2001 From: Zack Brown Date: Mon, 26 Aug 2013 12:56:47 -0400 Subject: [PATCH] Minor: specify measure in bytes --- source/faq/storage.txt | 8 ++++---- source/includes/ref-toc-method-collection.yaml | 4 ++-- source/reference/command/collStats.txt | 4 ++-- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/source/faq/storage.txt b/source/faq/storage.txt index f402670e141..bfc6b824446 100644 --- a/source/faq/storage.txt +++ b/source/faq/storage.txt @@ -205,10 +205,10 @@ The following example issues :method:`db.collection.stats()` for the To view specific measures of size, use these methods: -- :method:`db.collection.dataSize()`: data size for the collection. -- :method:`db.collection.storageSize()`: allocation size, including unused space. -- :method:`db.collection.totalSize()`: the data size plus the index size. -- :method:`db.collection.totalIndexSize()`: the index size. +- :method:`db.collection.dataSize()`: data size in bytes for the collection. +- :method:`db.collection.storageSize()`: allocation size in bytes, including unused space. +- :method:`db.collection.totalSize()`: the data size plus the index size in bytes. +- :method:`db.collection.totalIndexSize()`: the index size in bytes. Also, the following scripts print the statistics for each database and collection: diff --git a/source/includes/ref-toc-method-collection.yaml b/source/includes/ref-toc-method-collection.yaml index fc0e5c9e224..aac17d435ae 100644 --- a/source/includes/ref-toc-method-collection.yaml +++ b/source/includes/ref-toc-method-collection.yaml @@ -104,7 +104,7 @@ description: "Reports on the state of a collection. Provides a wrapper around th --- name: ":method:`db.collection.storageSize()`" file: /reference/method/db.collection.storageSize -description: "Reports the total size used by the collection. Provides a wrapper around the :data:`~collStats.storageSize` field of the :dbcommand:`collStats` output." +description: "Reports the total size used by the collection in bytes. Provides a wrapper around the :data:`~collStats.storageSize` field of the :dbcommand:`collStats` output." --- name: ":method:`db.collection.totalSize()`" file: /reference/method/db.collection.totalSize @@ -121,4 +121,4 @@ description: "Modifies a document in a collection." name: ":method:`db.collection.validate()`" file: /reference/method/db.collection.validate description: "Performs diagnostic operations on a collection." -... \ No newline at end of file +... diff --git a/source/reference/command/collStats.txt b/source/reference/command/collStats.txt index 0ff87e0fcd1..87bfc8b6c07 100644 --- a/source/reference/command/collStats.txt +++ b/source/reference/command/collStats.txt @@ -31,10 +31,10 @@ Definition "count" : 9, // number of documents "size" : 432, // collection size in bytes "avgObjSize" : 48, // average object size in bytes - "storageSize" : 3840, // (pre)allocated space for the collection + "storageSize" : 3840, // (pre)allocated space for the collection in bytes "numExtents" : 1, // number of extents (contiguously allocated chunks of datafile space) "nindexes" : 2, // number of indexes - "lastExtentSize" : 3840, // size of the most recently created extent + "lastExtentSize" : 3840, // size of the most recently created extent in bytes "paddingFactor" : 1, // padding can speed up updates if documents grow "flags" : 1, "totalIndexSize" : 16384, // total index size in bytes