AWS-发电机查询分区键列表
我是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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
编号
DDB查询仅适用于单个分区。因此,对a 单分区密钥值的要求。
扫描是唯一可以跨分区工作的读取操作。 (
”通常,扫描是一种非常糟糕的做法。当它读取整个桌子时,每次都开始结束。 (尽管它仍然受到DDB 1MB读取限制的约束)
No.
DDB Query only works for a single partition. Thus the requirement for a single partition key value.
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)