Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I found a good answer in the comments in this link:</p> <p><a href="http://blog.boxedice.com/2010/02/28/notes-from-a-production-mongodb-deployment/" rel="noreferrer">http://blog.boxedice.com/2010/02/28/notes-from-a-production-mongodb-deployment/</a></p> <p>Basically option #2 seems to be the best way to go.</p> <p>Quote from David Mytton's comment:</p> <blockquote> <p>We decided not to have a database per customer because of the way MongoDB allocates its data files. Each database uses it’s own set of files:</p> <blockquote> <p>The first file for a database is dbname.0, then dbname.1, etc. dbname.0 will be 64MB, dbname.1 128MB, etc., up to 2GB. Once the files reach 2GB in size, each successive file is also 2GB.</p> <p>Thus if the last datafile present is say, 1GB, that file might be 90% empty if it was recently reached.</p> </blockquote> <p>from the manual.</p> <p>As users sign up to the trial and give things a go, we’d get more and more databases that were at least 2GB in size, even if the whole of the data file wasn’t use. We found this used a massive amount of disk space compared to having several databases for all customers where the disk space can be used to maximum efficiency.</p> <p>Sharding will be on a per collection basis as standard which presents a problem where the collection never reaches the minimum size to start sharding, as is the case for quite a few of ours (e.g. collections just storing user login details). However, we have requested that this will also be able to be done on a per database level. See <a href="http://jira.mongodb.org/browse/SHARDING-41" rel="noreferrer">http://jira.mongodb.org/browse/SHARDING-41</a></p> <p>There are no performance tradeoffs using lots of collections. See <a href="http://www.mongodb.org/display/DOCS/Using+a+Large+Number+of+Collections" rel="noreferrer">http://www.mongodb.org/display/DOCS/Using+a+Large+Number+of+Collections</a></p> </blockquote>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload