Get sizes of documents of all collections in a database in MongoDB

So, this time just a useful snippet that can be executed by mongo myFile.js  to print som statitsitcs about documents in your MongoDB. db.collection.stats() has more useful information.

 

GD Star Rating
loading...
Get sizes of documents of all collections in a database in MongoDB, 10.0 out of 10 based on 1 rating

Kommentar verfassen