当我尝试向数据库添加新集合时,出现此错误:
Failed to create collection 'Products'.
Error:
Sorry, we are currently experiencing high demand in this region, and cannot
fulfill your request at this time. We work continuously to bring more and
more capacity online, and encourage you to try again. Please do not hesitate
to email <a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="d5b1bab6b1b7a6a2b4a195b8bcb6a7baa6bab3a1fbb6bab8" rel="noreferrer noopener nofollow">[email protected]</a> at any time or for any reason.
ActivityId: bad1a40a-0000-0000-0000-000000000000,
Microsoft.Azure.Documents.Common/1.22.0.0
这是一个本地模拟器,这个地区的需求量怎么样?
最佳答案
By default, you can create up to 25 single partition collections, or 1 partitioned collection using the Azure Cosmos DB Emulator. By modifying the PartitionCount value, you can create up to 250 single partition collections or 10 partitioned collections, or any combination of the two that does not exceed 250 single partitions (where one partitioned collection = 25 single partition collection).
所以基本上,如果您想创建更多分区集合或更多单分区集合,只需在从命令行启动时增加 PartitionCount
即可:
CosmosDB.Emulator.exe /PartitionCount=100
关于azure - 添加新集合时对 Azure Cosmos DB 模拟器的高要求,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51614989/