1、collection中的数据大小

db.collection.dataSize()

2、为collection分配的空间大小,包括未使用的空间
db.collection.storageSize()


3、collection中索引数据大小
db.collection.totalIndexSize()


4、collection中索引+data所占空间
db.collection.totalSize()

 posted on 2019-08-15 15:00  xibuhaohao  阅读(1591)  评论(0编辑  收藏  举报