AWS-发电机查询分区键列表

发布于 2025-02-01 20:53:38 字数 126 浏览 3 评论 0原文

我是AWS的新手。我可以在同一表上查询分区密钥(Doctype)等于AA或BB或CC等的发电机数据吗?我在KeyCondition Expression中的子句中没有看到“或”。有什么方法可以实现这一目标吗?我正在使用node.js谢谢。

I'm new to AWS. Can I query the dynamo data on the same table where the Partition key(docType) equals to AA or BB or CC etc? I don't see "OR" or "IN" clauses in keyConditionExpression. Is there any way to achieve this? I'm using node.js Thanks.

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

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

发布评论

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

评论(1

画离情绘悲伤 2025-02-08 20:53:38

编号

DDB查询仅适用于单个分区。因此,对a 单分区密钥值的要求。

您必须提供分区密钥属性的名称和一个
该属性的值。

使用密钥调节执行参数提供特定值
对于分区密钥。

扫描是唯一可以跨分区工作的读取操作。 (

”通常,扫描是一种非常糟糕的做法。当它读取整个桌子时,每次都开始结束。 (尽管它仍然受到DDB 1MB读取限制的约束)

No.

DDB Query only works for a single partition. Thus the requirement for a single partition key value.

You must provide the name of the partition key attribute and a single
value for that attribute.

Use the KeyConditionExpression parameter to provide a specific value
for the partition key.

Scan is the only read operation that will work across partitions. (optionally at the same time)

Using scan routinely is a very bad practice. As it reads the entire table, beginning to end, every time. (though it remains subject to DDB 1MB read limit)

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