[英]Is there any limit (how many) of collections per database, per account or per subscription for Cosmos Db?
我想知道可以在cosmos数据库中添加的最大集合数。
Fortunately there are no limits in number of collections that can be added to a cosmos DB. 幸运的是,可以添加到cosmos DB的集合数量没有限制。
But be aware: Each collection is purchased! 但请注意:每个系列都已购买! 5 collections are costs 5 times more than one collection.
5个系列的成本是一个系列的5倍。 (if they all have the same RU/s).
(如果它们都具有相同的RU / s)。
A good pattern is to put all data into one single collection and add a .type
property for each document. 一个好的模式是将所有数据放入一个集合中,并为每个文档添加
.type
属性。 With that .type
your query the data you want to get. 使用该
.type
查询您想要获取的数据。
SELECT * FROM c WHERE c.type = <myDataType>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.