Skip to content

Instantly share code, notes, and snippets.

@Sequoia
Created January 31, 2013 22:47
Show Gist options
  • Save Sequoia/4687394 to your computer and use it in GitHub Desktop.
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
[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
@Sequoia
Copy link
Author

Sequoia commented Feb 1, 2013

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment