6517204") }, "shard" : "set1" }
{ "_id" : "test.lineqi-id_-6148914691236517204", "lastmod" : Timestamp(3, 3), "lastmodEpoch" : ObjectId("55ddb7460f613da70e8ce380"), "ns" : "test.lineqi", "min" : { "id" : NumberLong("-6148914691236517204") }, "max" : { "id" : NumberLong("-3074457345618258602") }, "shard" : "set2" }
{ "_id" : "test.lineqi-id_0", "lastmod" : Timestamp(3, 5), "lastmodEpoch" : ObjectId("55ddb7460f613da70e8ce380"), "ns" : "test.lineqi", "min" : { "id" : NumberLong(0) }, "max" : { "id" : NumberLong("3074457345618258602") }, "shard" : "set3" }
{ "_id" : "test.lineqi-id_6148914691236517204", "lastmod" : Timestamp(3, 7), "lastmodEpoch" : ObjectId("55ddb7460f613da70e8ce380"), "ns" : "test.lineqi", "min" : { "id" : NumberLong("6148914691236517204") }, "max" : { "id" : { "$maxKey" : 1 } }, "shard" : "set1" }
查看users表的存储信息
mongos>use test
mongos> db.lineqi.stats();
{
? ? ? ? "sharded" : true,
? ? ? ? "systemFlags" : 1,
? ? ? ? "userFlags" : 1,
? ? ? ? "ns" : "test.lineqi",
? ? ? ? "count" : 100000,
? ? ? ? "numExtents" : 18,
? ? ? ? "size" : 11200000,
? ? ? ? "storageSize" : 33546240,
? ? ? ? "totalIndexSize" : 8086064,
? ? ? ? "indexSizes" : {
? ? ? ? ? ? ? ? "_id_" : 3262224,
? ? ? ? ? ? ? ? "id_hashed" : 4823840
? ? ? ? },
? ? ? ? "avgObjSize" : 112,
? ? ? ? "nindexes" : 2,
? ? ? ? "nchunks" : 6,
? ? ? ? "shards" : {
? ? ? ? ? ? ? ? "set1" : {
? ? ? ? ? ? ? ? ? ? ? ? "ns" : "test.lineqi",
? ? ? ? ? ? ? ? ? ? ? ? "count" : 33102,
? ? ? ? ? ? ? ? ? ? ? ? "size" : 3707424,
? ? ? ? ? ? ? ? ? ? ? ? "avgObjSize" : 112,
? ? ? ? ? ? ? ? ? ? ? ? "storageSize" : 11182080,
? ? ? ? ? ? ? ? ? ? ? ? "numExtents" : 6,
? ? ? ? ? ? ? ? ? ? ? ? "nindexes" : 2,
? ? ? ? ? ? ? ? ? ? ? ? "lastExtentSize" : 8388608,
? ? ? ? ? ? ? ? ? ? ? ? "paddingFactor" : 1,
? ? ? ? ? ? ? ? ? ? ? ? "systemFlags" : 1,
? ? ? ? ? ? ? ? ? ? ? ? "userFlags" : 1,
? ? ? ? ? ? ? ? ? ? ? ? "totalIndexSize" : 2649024,
? ? ? ? ? ? ? ? ? ? ? ? "indexSizes" : {
? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? "_id_" : 1079232,
? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? "id_hashed" : 1569792
? ? ? ? ? ? ? ? ? ? ? ? },
? ? ? ? ? ? ? ? ? ? ? ? "ok" : 1
? ? ? ? ? ? ? ? },
? ? ? ? ? ? ? ? "set2" : {
? ? ? ? ? ? ? ? ? ? ? ? "ns" : "test.lineqi",
? ? ? ? ? ? ? ? ? ? ? ? "count" : 33755,
? ? ? ? ? ? ? ? ? ? ? ? "size" : 3780560,
? ? ? ? ? ? ? ? ? ? ? ? "avgObjSize" : 112,
? ? ? ? ? ? ? ? ? ? ? ? "storageSize" : 11182080,
? ? ? ? ? ? ? ? ? ? ? ? "numExtents" : 6,
? ? ? ? ? ? ? ? ? ? ? ? "nindexes" : 2,
? ? ? ? ? ? ? ? ? ? ? ? "lastExtentSize" : 8388608,
? ? ? ? ? ? ? ? ? ? ? ? "paddingFactor" : 1,
? ? ? ? ? ? ? ? ? ? ? ? "systemFlags" : 1,
? ? ? ? ? ? ? ? ? ? ? ? "userFlags" : 1,
? ? ? ? ? ? ? ? ? ? ? ? "totalIndexSize" : 2755312,
? ? ? ? ? ? ? ? ? ? ? ? "indexSizes" : {
? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? "_id_" : 1103760,
? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? "id_hashed" : 1651552
? ? ? ? ? ? ? ? ? ? ? ? },
? ? ? ? ? ? ? ? ? ? ? ? "ok" : 1
? ? ? ? ? ? ? ? },
? ? ? ? ? ? ? ? "set3" : {
? ? ? ? ? ? ? ? ? ? ? ? "ns" : "test.lineqi",
? ? ? ? ? ? ? ? ? ? ? ? "count" : 33143,
? ? ? ? ? ? ? ? ? ? ? ? "size" : 3712016,
? ? ? ? ? ? ? ? ? ? ? ? "avgObjSize" : 112,
? ? ? ? ? ? ? ? ? ? ? ? "storageSize" : 11182080,
? ? ? ? ? ? ? ? ? ? ? ? "numExtents" : 6,
? ? ? ? ? ? ? ? ? ? ? ? "nindexes" : 2,
? ? ? ? ? ? ? ? ? ? ? ? "lastExtentSize" : 8388608,
? ? ? ? ? ? ? ? ? ? ? ? "paddingFactor" : 1,
? ? ? ? ? ? ? ? ? ? ? ? "systemFlags" : 1,
? ? ? ? ? ? ? ? ? ? ? ? "userFlags" : 1,
? ? ? ? ? ? ? ? ? ? ? ? "totalIndexSize" : 2681728,
? ? ? ? ? ? ? ? ? ? ? ? "indexSizes" : {
? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? "_id_" : 1079232,
? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? "id_hashed" : 1602496
? ? ? ? ? ? ? ? ? ? ? ? },
? ? ? ? ? ? ? ? ? ? ? ? "ok" : 1
? ? ? ? ? ? ? ? }
? ? ? ? },
? ? ? ? "ok" : 1
}
更多MongoDB相关内容可以看看以下的有用链接:?