Created
July 6, 2017 12:45
-
-
Save AlexMihov/f47c9eafadd43c3118af14a34eaf36c6 to your computer and use it in GitHub Desktop.
Show Stats
This file contains hidden or 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
var collections = db.getCollectionNames(); | |
for(var i = 0; i < collections.length; i++){ | |
var name = collections[i]; | |
if(name.substr(0, 6) != 'system'){ | |
var c = db.getCollection(name).count() ; | |
if (c > 1000) print(name + ' - ' + c + ' records'); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment