【发布时间】:2017-01-23 23:24:00
【问题描述】:
有没有办法使用全局二级索引从 DynamoDB 中的表执行批量加载?
batchLoad API 只接受 HashKeys,而queryPage API 只允许您传入单个密钥。
【问题讨论】:
标签: amazon-dynamodb aws-java-sdk
有没有办法使用全局二级索引从 DynamoDB 中的表执行批量加载?
batchLoad API 只接受 HashKeys,而queryPage API 只允许您传入单个密钥。
【问题讨论】:
标签: amazon-dynamodb aws-java-sdk
BatchLoad 在幕后使用 BatchGetItem。 BatchGetItem 只能从基表中读取,不能从索引(LSI、GSI)中读取。因此,您需要在 GSI 上并行运行多个 Query 操作才能达到类似的效果。
【讨论】: