derjust / spring-data-dynamodb

This module deals with enhanced support for a data access layer built on AWS DynamoDB.
https://derjust.github.io/spring-data-dynamodb/
Apache License 2.0
403 stars 141 forks source link

Batch read query #211

Open ankit-mandhani opened 6 years ago

ankit-mandhani commented 6 years ago

How can I perform a Dynamo batch read? I tried creating a query, findAllById(List<String> id), but this always returns an empty response.

Then I created another query, findByIdIn(List<String> id), and it gives the expected result. Is this query performing a Dynamo batch read?

I am using the version 4.5.7 of the library

ufdeveloper commented 5 years ago

@ankit-mandhani I think findByIdIn(List id) performs a scan on the table. I am looking for a method which will do a query on the table for a given list of ids on a secondary index, instead of doing a scan as the one above does.