1

I have a dynamoDB with a GSI with a hashKey and a rangeKey. I want to query the GSI for a list of hashKey-rangeKey.

For example, productKey = 123,456,789 product = productA

I tried a method like this, findByProductRefKeyInAndProduct(List productKeys, String product);

However, this does a scan on the table instead of a query.

Is it even possible to query the table for this type of request. I believe it should be, but I am not able to find the right way.

1 Answer 1

0

dynamoDB does not support querying for multiple values over a GSI in a single query. The recommended approach is to query for each value parallelly - DynamoDB batch execute QueryRequests

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.