Is there a way to query multiple hash keys in DynamoDB?

前端 未结 6 1315
借酒劲吻你
借酒劲吻你 2021-01-01 18:57

Is there a way to query multiple hash keys using a single query in Amazon\'s AWS SDK for Java?

Here\'s my issue; I have a DB table for project statuses. The Hash

6条回答
  •  轻奢々
    轻奢々 (楼主)
    2021-01-01 19:29

    You might have a look at BatchGetItem operation or the batchLoad() method of the DynamoDBMapper. Although a little different than a query in that it's not a query with an OR condition on the hash key, it will allow you to accomplish (generally) the same thing. Here is the language agnostic documentation and here is the Javadoc.

提交回复
热议问题