test7:PRIMARY> show collections
|
test7:PRIMARY> db.a.insert({a:1})
|
WriteResult({ "nInserted" : 1 })
|
test7:PRIMARY> show collections
|
test7:PRIMARY> db.a.find()
|
{ "_id" : ObjectId("545b6bba4cabb8d975e9e665"), "a" : 1 }
|
{ "_id" : ObjectId("545b6bba4cabb8d975e9e665"), "a" : 1 }
|
Type "it" for more
|
test7:PRIMARY> show collections
|
test7:PRIMARY> db.adminCommand("listCollections")
|
{ "collections" : [ ], "ok" : 1 }
|
test7:PRIMARY> use local
|
switched to db local
|
test7:PRIMARY> db.adminCommand("listCollections")
|
{ "collections" : [ ], "ok" : 1 }
|
test7:PRIMARY> show collections
|
test7:PRIMARY> db.oplog.rs.stats()
|
{
|
"ns" : "local.oplog.rs",
|
"count" : 2097152,
|
"size" : 201326592,
|
"avgObjSize" : 96,
|
"storageSize" : 89,
|
"nindexes" : 0,
|
"capped" : true,
|
"max" : -1,
|
"maxSize" : 201326592,
|
"wiredtiger" : {
|
"uri" : "statistics:table:collection-6-2589753951712478342",
|
"LSM" : {
|
...
|