查看MongoDB Quick Start的源代码
←
MongoDB Quick Start
跳转到:
导航
,
搜索
因为以下原因,你没有权限编辑本页:
您刚才请求的操作只有这个用户组中的用户才能使用:
用户
您可以查看并复制此页面的源代码:
== Basic Management == === Show === <source lang=bash> > show dbs admin local test > use test switched to db test > show collections system.indexes users </source> <br><br> === Stats === <source lang=bash> > db.stats() { "collections" : 2, "objects" : 1, "dataSize" : 60, "storageSize" : 6144, "numExtents" : 2, "indexes" : 1, "indexSize" : 8192, "ok" : 1 } > db.users.stats() { "ns" : "test.users", "count" : 0, "size" : 0, "storageSize" : 2560, "numExtents" : 1, "nindexes" : 1, "lastExtentSize" : 2560, "paddingFactor" : 1.49, "flags" : 1, "totalIndexSize" : 8192, "indexSizes" : { "_id_" : 8192 }, "ok" : 1 } </source> The true is: <source lang=bash> > db.runCommand function (obj) { if (typeof obj == "string") { var n = {}; n[obj] = 1; obj = n; } return this.getCollection("$cmd").findOne(obj); } > db.runCommand({dbstats:1}) { "collections" : 2, "objects" : 1, "dataSize" : 60, "storageSize" : 6144, "numExtents" : 2, "indexes" : 1, "indexSize" : 8192, "ok" : 1 } > > db.runCommand({dbstats:'numbers'}) { "collections" : 2, "objects" : 1, "dataSize" : 60, "storageSize" : 6144, "numExtents" : 2, "indexes" : 1, "indexSize" : 8192, "ok" : 1 } </source> <br><br> <br><br> <br><br> <br><br>
返回到
MongoDB Quick Start
。
个人工具
3.14.11.50
该IP地址的讨论
登录
名字空间
页面
讨论
变换
查看
阅读
查看源代码
查看历史
操作
搜索
导航
首页
社区专页
新闻动态
最近更改
随机页面
帮助
工具箱
链入页面
相关更改
特殊页面