db.collection.dataSize()

返回: 集合的大小(以字节为单位)。
Data compression不会影响此值。

此方法为collStats(即db.collection.stats())命令的size输出提供了包装。

首页