Created
June 28, 2014 12:21
-
-
Save saintc0d3r/9eb1fab9de0d59ce8d15 to your computer and use it in GitHub Desktop.
Showing the stats of a mongodb's collection
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
// To show the statistic of a foo collection | |
db.foo.stats() | |
// To show the size of total index size of foo collection (in bytes) | |
db.foo.totalIndexSize() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment