Thanks for the quick response. A further question I have is about
indexing in this model. Virtually all of my queries will be fetching
documents scoped to a project and an upload such as
'db.documents.find({ project_id: 1, upload_id: 20, name:
"some_name" })'. For this reason I thought having individual
collections per upload would help with query performance. If I were to
have one collection per upload, the query would then look like this,
'project_1_db.upload_20.find({ name: "some_name" })'. However, would
it be just as beneficial to stick to a single collection and use
compound keys for my indexes, such that an index on name would be a
compound on project_id, upload_id, and name? I'm in the process of
prototyping to get some performance statistics but I wanted to get an
understanding of MongoDB 'best practices'. Thanks for the help.