Created
January 31, 2013 22:47
-
-
Save Sequoia/4687394 to your computer and use it in GitHub Desktop.
Disk space cost of a mongo database with a single collection with a single document with a single key with a single digit: 211 MB
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
[523]$ mongo asdf | |
MongoDB shell version: 2.0.4 | |
connecting to: asdf | |
> db.a.insert({a:1}); | |
> | |
bye | |
17:42:36-diamonds:wk2 | |
[524]$ sudo du -sh /var/lib/mongodb/asdf. | |
asdf.0 asdf.1 asdf.ns | |
17:42:36-diamonds:wk2 | |
[524]$ sudo du -sh /var/lib/mongodb/asdf* | |
65M /var/lib/mongodb/asdf.0 | |
129M /var/lib/mongodb/asdf.1 | |
17M /var/lib/mongodb/asdf.ns |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Default configuration, installed on Ubuntu. I have learned about
smallfiles
now but default configuration should be sensible and reasonable for new users who are the least likely to know how to customize. Set defaults for the average new user.