|
Collection names can also be a single whitespace character:
> db.getCollection(" ").insert({a:1})
|
WriteResult({ "nInserted" : 1 })
|
|
> db.getCollection(" ").find()
|
{ "_id" : ObjectId("55070ed5af00f033bbcd7206"), "a" : 1 }
|
|
> db.getCollection(" ").stats()
|
{
|
"ns" : "test. ",
|
"count" : 1,
|
"size" : 48,
|
"avgObjSize" : 48,
|
"numExtents" : 1,
|
"storageSize" : 8192,
|
"lastExtentSize" : 8192,
|
"paddingFactor" : 1,
|
"paddingFactorNote" : "paddingFactor is unused and unmaintained in 3.0. It remains hard coded to 1.0 for compatibility only.",
|
"userFlags" : 1,
|
"capped" : false,
|
"nindexes" : 1,
|
"totalIndexSize" : 8176,
|
"indexSizes" : {
|
"_id_" : 8176
|
},
|
"ok" : 1
|
}
|
|
> db.version()
|
3.0.0
|
Sometimes MMS or other applications can error when they're trying to use these collections or pull operations from the oplog.
|