发布于 2015-09-14 14:52:34 | 205 次阅读 | 评论: 0 | 来源: 网络整理

db.stats(scale)
参数:
  • scale – Optional. Specifies the scale to deliver results. Unless specified, this command returns all data in bytes.
返回:

A document that contains statistics reflecting the database system’s state.

This function provides a wrapper around the database command “dbStats”. The scale option allows you to configure how the mongo shell scales the sizes of things in the output. For example, specify a scale value of 1024 to display kilobytes rather than bytes.

See the “数据库统计参考” document for an overview of this output.

注解

The scale factor rounds values to whole numbers. This can produce unpredictable and unexpected results in some situations.

最新网友评论  共有(0)条评论 发布评论 返回顶部

Copyright © 2007-2017 PHPERZ.COM All Rights Reserved   冀ICP备14009818号  版权声明  广告服务