1、collection中的数据大小

db.collection.dataSize()

2、为collection分配的空间大小,包括未使用的空间

db.collection.storageSize()

3、collection中索引数据大小

db.collection.totalIndexSize()

4、collection中索引+data所占空间

db.collection.totalSize()