Created
January 4, 2017 12:41
-
-
Save countless-integers/570148db316cd0d93fc8aec872b19641 to your computer and use it in GitHub Desktop.
Dummy collection count in mongodb
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
var collections = db.getCollectionNames(); | |
collections.forEach(function (item) { | |
print(item + ": " + db[item].stats().count); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment