amazon-dynamodb - DynamoDb异常 : Too many decomposed read operations for a given query

标签 amazon-dynamodb dynamodb-queries amazon-dynamodb-index

使用如下所示的 PartiQL 查询时:

从 my_table WHERE my_field IN [1, 2, 3...] 中选择 *

我收到了此错误,我在 Google 中找不到该错误,并且没有告诉我有关如何解决该问题的任何信息:

DynamoDbException:给定查询的分解读取操作过多

我需要做哪些不同的事情?

最佳答案

对于辅助索引属性上的 WHERE IN 查询,项目限制为 50 个。

我询问了 AWS 并得到了回复,我将发布该回复,以防其他人发现它有用:

This exception is expected when you increase the value in your WHERE IN statement to more than 50. When it passes 50 total, it will throw the error "Too many decomposed read operations for a given query".

注意,此限制仅适用于二级索引。主索引的限制为 100。

关于amazon-dynamodb - DynamoDb异常 : Too many decomposed read operations for a given query,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/72463744/

相关文章:

amazon-web-services - 何时以及如何对具有分区键和排序键的 Dynamodb GSI 进行分区?

amazon-web-services - 何时值得在 DynamoDB 中使用本地二级索引进行权衡?

ruby - 使用 ItemsCollection#query 进行分页?

ios - AWS 认知错误 : Authentication delegate not set

java - 根据 id 从 DynamoDB 检索项目并转换该项目

java - 如何查询DynamoDB并返回第一个匹配结果而不是查询整个集合?

javascript - 在 NodeJS 中使用 AWS.DynamoDB.DocumentClient 获取排序键以子字符串开头的 get() 条目的正确语法是什么?

amazon-dynamodb - 在什么时候你需要 dynamodb 中的多个表?

ios - ValidationException : Supplied AttributeValue is empty, 必须恰好包含一种受支持的数据类型

amazon-web-services - 更新 dynamodb 中的列表项