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

发布于 2025-02-03 08:03:39 字数 212 浏览 3 评论 0原文

当使用看起来像这样的partiql查询时:

从my_table中进行选择 *,其中my_field在[1、2、3 ...]

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

dynamodbexception:给定查询的分解读取操作太多了

我需要做什么不同?

When using a PartiQL query which looks like this:

SELECT * FROM my_table WHERE my_field IN [1, 2, 3...]

I received this error which I can't find anywhere in Google and doesn't tell me anything about how to resolve the problem:

DynamoDbException: Too many decomposed read operations for a given query

What do I need to do differently?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

原野 2025-02-10 08:03:39

对于在辅助索引属性上的查询中,有50个项目的限制。

我问AWS并得到了一个响应,以防万一其他人发现它有用:

当您将语句中的值增加到50以上时,期望此例外。当总计50时,它将丢弃“给定查询的分解过多的读取操作”。

NB,此限制仅适用于辅助索引。主要索引的限制为100。

For WHERE IN queries on a secondary index attribute, there is a limit of 50 items.

I asked AWS and got a response which I will post in case anyone else finds it useful:

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".

NB, this limit only applies for secondary indexes. The limit for primary indexes is 100.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文