Created
June 21, 2013 18:41
-
-
Save djudd/5833350 to your computer and use it in GitHub Desktop.
Get stats for all collections >= 1GB
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
db.getCollectionNames().forEach(function(c) {s = db[c].stats(1024*1024*1024); if (s.size > 0) { printjson(s); }}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment