在 Dynamo 中的全局二级索引上批量加载

问题描述 投票:0回答:2

有没有办法使用全局二级索引从 DynamoDB 中的表执行批量加载?

batchLoad API 只接受 HashKeys,而 queryPage API 只允许你传入一个键。

amazon-dynamodb aws-java-sdk
2个回答
6
投票

BatchLoad 在幕后使用 BatchGetItem。 BatchGetItem 只能从基表中读取,而不能从索引(LSI、GSI)中读取。因此,您需要在 GSI 上并行运行多个查询操作才能达到类似的效果。


-2
投票

你找到答案了吗?

© www.soinside.com 2019 - 2024. All rights reserved.