我计划将我的数据库存储在Cloudant中。
我们的应用程序是多租户的。我们目前根据某些表格中的值对租户进行分离,这些表格自然会转换为文档中的值。另一种方法是每个租户都有数据库。我们目前有大约 100 个租户,并希望在我们的最佳预测中增长到 500-2000 个。
一个 db 中的所有租户与每个租户的 db 之间的优缺点是什么?
我们可以同时创建和使用的数据库数量是否有限制?
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.