OPTIONS

dataSize

dataSize

The dataSize command returns the data size for a set of data within a certain range:

{ 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. The keyPattern, min, and max parameters are options.

The amount of time required to return dataSize depends on the amount of data in the collection.

←   cursorInfo diagLogging  →

Was this page helpful?

Yes No

Thank you for your feedback!

We're sorry! You can Report a Problem to help us improve this page.