【问题标题】:batchLoad on a Global Secondary Index in DynamobatchLoad 在 Dynamo 中的全局二级索引上
【发布时间】:2017-01-23 23:24:00
【问题描述】:

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

batchLoad API 只接受 HashKeys,而queryPage API 只允许您传入单个密钥。

【问题讨论】:

    标签: amazon-dynamodb aws-java-sdk


    【解决方案1】:

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

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2019-02-04
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2019-10-26
      • 2017-10-11
      相关资源
      最近更新 更多