0
votes

In my DynamoDB table, There is HashKey = ID and GSI = Type. I need to fetch all hashKeys (IDs) for particular type (GSI).

What is the efficient way to fetch all IDs for given type in this case. My DynamoDB table won't be large.

2

2 Answers

0
votes
0
votes

You could just query the GSI for the 'type' you're interested in and retrieve the IDs your interested in since all key field from the table are automatically projected into the GSI