> use database switched to db database > db.stats() { "db" : "database", "collections" : 4, "objects" : 32, "avgObjSize" : 173.25, "dataSize" : 5544, "storageSize" : 24576, "numExtents" : 4, "indexes" : 3, "indexSize" : 24528, "fileSize" : 201326592, "nsSizeMB" : 16, "ok" : 1 }
dataSize - the size that your data consumes
fileSize - mongo db file containing all collections
indexSize - the size of any indexes you created in this collection
nsSizeMB - the limit depends on how big your collection can be (this is not a limitation of mongo, just stop developers bombarding collections in endless cycles)
source share