listStorage
Display the amount of storage consumed by each collection
Definition
listStorage returns the amount of disk storage consumed by each collection in a ProvenDB database.
Reducing storage
Unlike MongoDB, the delete and drop commands in ProvenDB only remove data from view, they do not remove it from disk. To reduce storage requirements you will need to use the Compact or Forget commands.
Syntax
{listStorage:1}
Example
mongo> db.runCommand({listStorage:1})
{
"ok" : 1,
"storageList" : [
{
"rollback9626540" : NumberLong(33464320)
},
{
"rollback8937869" : NumberLong(27967488)
},
{
"rollback8504987" : NumberLong(27553792)
},
{
"rollback6384294" : NumberLong(15200256)
},
{
"rollback9854196" : NumberLong(12398592)
},
{
"rollback563181" : NumberLong(11243520)
},
{
"bigCollection7768372" : NumberLong(3100672)
}
]
}
Updated over 5 years ago