有关Table API CosmosDB的一些问题 [英] Some questions about Table API CosmosDB

查看:102
本文介绍了有关Table API CosmosDB的一些问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

Hi everyone,

当我尝试使用Table API在CosmosDB中添加新表时,我看到了.

While i was trying to add a new table in CosmosDB with Table API, i saw this.

我只是想给超过10,000卢布,但不知道该怎么办.在哪里可以选择无限的存储容量?

Simply i want to give more than 10,000 RU but didn't know how to do it. Where is the place to choose unlimited storage capacity?

另外,在Cosmos DB常见问题解答中,它表示:

Also, from Cosmos DB FAQ, it said:

因此Table API仍需要PartitionKey和RowKey吗?

So PartitionKey and RowKey are still required with the Table API?

是.由于Table API的表面积类似于Azure Table存储SDK的表面积,因此分区键提供了一种有效的方式来分发数据.行键在以下范围内是唯一的 该分区.行键必须存在,并且不能像标准SDK中那样为空. RowKey的长度为255个字节,PartitionKey的长度为1 KB.

Yes. Because the surface area of the Table API is similar to that of the Azure Table storage SDK, the partition key provides an efficient way to distribute the data. The row key is unique within that partition. The row key needs to be present and can't be null as in the standard SDK. The length of RowKey is 255 bytes and the length of PartitionKey is 1 KB.

对于SQL API,我可以创建一个新集合并从Azure门户中选择分区键.我该如何使用Table API(选择分区键和行键)呢?

In case of SQL API, i can create a new collection and choose partition key from Azure portal. How can i do that with Table API (choose Partition key and row key)?

推荐答案

Khoi-Thinh,

Hi Khoi-Thinh,

关于这个问题:"

这是在最初部署Azure Cosmos DB Table API时建立的.如果您已经配置了Table API实例但没有任何与其关联的数据库,则还有另一种选择:

This is established when you initially deploy the Azure Cosmos DB Table API. There is another option if you have already provision a Table API instance but do not have any databases associated with it:

在Data Explorer中,确保您没有数据库/表:

然后您可以更改 配置吞吐量 配置:

You can then change the Provision Throughput configuration: 

To use the Table API in calling an object, Table Partitions do not operate in the same manner as SQL API Partitions: Microsoft Cosmos DB (DocumentDB API) vs. Cosmos DB (Table API) (DocumentDB is now SQL API).

如果您还有其他疑问,请告诉我们.

Please let us know if you have any additional questions.


这篇关于有关Table API CosmosDB的一些问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆