Question

I'm planing on having my database stored in Cloudant.

Our application is multi-tenant. We currently do the separation to tenants based on a value in some of our tables which will naturally translation to value in a document. Another way is to have database per tenant. We currently have around 100 tenants and hopefully will grow to 500-2000 in our best projections.

What is the pros and cons between all tenants in one db vs. db per tenant?

Is there limitation on the number of database we can create and work with concurrently?

Was it helpful?

Solution

This is a good and involved question. There are pros and cons to both models. The main advantage to one large database is that you can analyze (search, mapreduce, etc) across all users very easily. The main advantage of one-db-per-user is that every user has their own data "sandbox", which may be nice for your SLA. Additionally, that means that the amount of data in each user database can be relatively small.

If you can provide more details about the data you are storing, the relational modeling, and the queries you hope to be able to do, I can probably give you a more satisfying answer.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top