1、collection中的数据大小
db.collection.dataSize()
2、为collection分配的空间大小,包括未使用的空间
db.collection.storageSize()
3、collection中索引数据大小
db.collection.totalIndexSize()
4、collection中索引+data所占空间
db.collection.totalSize()
1、collection中的数据大小
db.collection.dataSize()
2、为collection分配的空间大小,包括未使用的空间
db.collection.storageSize()
3、collection中索引数据大小
db.collection.totalIndexSize()
4、collection中索引+data所占空间
db.collection.totalSize()
一、Collection聚集集合1、创建一个聚集集合(table)db.createCollection(name, {capped: <Boolean>, autoIndexId: <Boolean>, size: <number>, max <number>} )name:集合的名字capped:是否启用集合限制,如果开启需要制定一个限制条件,默
举报文章
请选择举报类型
补充说明
0/200
上传截图
格式支持JPEG/PNG/JPG,图片不超过1.9M