有关Table API CosmosDB的一些问题

编程入门 行业动态 更新时间:2024-10-24 18:26:15
本文介绍了有关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,

关于这个问题:"我只想捐出10,000多卢布,但不知道该怎么办.选择无限存储容量的地方在哪里?"

这是在最初部署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:

要在调用对象时使用Table API,请 表分区的操作方式与SQL API分区不同: Microsoft Cosmos DB(DocumentDB API)与 Cosmos DB(表API)(DocumentDB现在为SQL API).

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的一些问题

本文发布于:2023-10-28 17:58:09,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1537367.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:Table   API   CosmosDB

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!