DBAtlas · Database operations atlas

View index and collection sizes

MongoDBMaintenance

Command

db.customer.stats({ indexDetails: true })

What it does

Reports the collection size, storage size and the size of each index.

When to use it

When analyzing storage usage and index cost.

Caution

Read-only command; no risk.

Open in DBAtlas →

Related