From ba2cfbcad25d2e6beadf0890355e45ce79a80ffa Mon Sep 17 00:00:00 2001 From: jason-price-mongodb Date: Tue, 12 Oct 2021 11:35:55 -0700 Subject: [PATCH] DOCS-14838 dataSize command specify units --- source/reference/command/dataSize.txt | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/source/reference/command/dataSize.txt b/source/reference/command/dataSize.txt index eee67ed19a0..c43843a09a6 100644 --- a/source/reference/command/dataSize.txt +++ b/source/reference/command/dataSize.txt @@ -15,8 +15,8 @@ Definition .. dbcommand:: dataSize - The :dbcommand:`dataSize` command returns the data size for a set - of data within a certain range: + The :dbcommand:`dataSize` command returns the size in bytes for + the specified data: .. code-block:: javascript @@ -104,9 +104,9 @@ and the upper bound of the key to be examined being ``{field: 100}``. db.runCommand({ dataSize: "database.collection", keyPattern: { field: 1 }, min: { field: 10 }, max: { field: 100 } }) -This will return a document that contains the size of all matching -documents. Replace ``database.collection`` value with database -and collection from your deployment. +This returns a document with the size in bytes for all matching +documents. Replace ``database.collection`` with the database and +collection from your deployment. The amount of time required to return :dbcommand:`dataSize` depends on the amount of data in the collection.