amazon-web-services - DynamoDB 中的全局二级索引 (GSI) 影响表配置容量

标签 amazon-web-services amazon-dynamodb

我有 2 个用例的查询,这些用例具有不同的吞吐量需要被定向到一个 DynamoDB 表。

  • 第一个用例只需要使用主键进行读/写,但至少需要每秒 1700 次写入和每秒 8000 次读取
  • 第二个用例利用每个 GSI,但使用 GSI 的查询很少。每分钟少于 10 个查询。

因此,我为 GSI 提供的容量将远远小于为主键提供的容量。这是否意味着当我在表上写入时,性能上限是我为 GSI 预配的?

最佳答案

问过 AWS Support 同样的问题,下面是他们的回答:

Your question is worth asking. In the scenario you mention your read/write request in GSI will be throttled, and 10 writes / min will be the effective limit. This will create issues when ever you update your primary table, the updates will get mirrored to GSI. So either you should Provision similar write capacity to GSI or do not keep attribute in GSI that will get updated frequently.

Here is link to our documentation that will help you : http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/GSI.html#GSI.ThroughputConsiderations

关于amazon-web-services - DynamoDB 中的全局二级索引 (GSI) 影响表配置容量,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39582752/

相关文章:

javascript - AWS DynamoDb DocumentClient - 从项目数组创建 batchWrite - node.js

java - 具有复合键的重复主键,DynamoDB

amazon-web-services - DynamoDB适合高事务应用吗?

amazon-web-services - 在 AWS CloudFormation 中,使用 aws cli 创建新堆栈时,堆栈状态从 CREATE_IN_PROGRESS 更改为 ROLLBACK_COMPLETE

amazon-web-services - 如何选择重新通过 Amazon Pinpoint 接收 SMS 消息

python-3.x - Flask Dynamo CreateTable 操作问题(botocore.exceptions.ClientError)

ios - 无法使用核心数据从 DynamoDB 获取相关项目

amazon-web-services - 带有 ConditionExpression 的 DynamoDb

api - 未记录的 AWS TAG_FILTERS_1_0

amazon-ec2 - 亚马逊 ec2 的 SPF 记录