- 集合的统计信息存放在数据节
SYSSTAT.SYSCOLLECTIONSTAT
集合中,具体字段如下:
字段名 | 数据类型 | 默认值 | 必须 | 说明 |
---|
CollectionSpace | String | | 是 | 统计收集的集合空间名 |
Collection | String | | 是 | 统计收集的集合名 |
CreateTime | NumberLong | 0 | 是 | 统计收集的时间戳 |
SampleRecords | NumberLong | 0 | 是 | 统计收集时抽样的文档个数 |
TotalDataPages | NumberInt | 1 | 是 | 统计收集时的数据页个数 |
TotalDataSize | NumberLong | | 是 | 统计收集时的数据总大小(字节数) |
TotalRecords | NumberLong | 10 | 是 | 统计收集时的文档个数 |
AvgNumFields | NumberInt | 10 | 否 | 文档的平均字段数 |
- SYSSTAT.SYSCOLLECTIONSTAT 统计信息示例:
{
"Collection": "sample",
"CollectionSpace": "employee",
"CreateTime": 1496910925978,
"SampleRecords": 200,
"TotalDataPages": 1284,
"TotalDataSize": 65929411,
"TotalRecords": 600000,
"AvgNumFields" : 10
}