spring-data-dynamodb icon indicating copy to clipboard operation
spring-data-dynamodb copied to clipboard

Respoitory performing scan instead of query in case of lists

Open asif-iiitm opened this issue 5 years ago • 2 comments

Expected Behavior

List<MetricScoreMetadataEntity> getMetricScoreMetadataEntitiesByMetricIdInAndMonth(List<String> metricId, String month);

Hash key : metricId Sort Key : month

Should have performed bulk query for the whole list of items and given results

Actual Behavior

Performing scan for the list of items

Specifications

  • Spring Data DynamoDB Version: 5.1.0
  • Spring Data Version:
  • AWS SDK Version:
  • Java Version: 8
  • Platform Details:

asif-iiitm avatar Nov 08 '19 10:11 asif-iiitm

I have the same Issue on the boostchicken repo. Then I created another more detailed issue on boostchicken repo:

https://github.com/boostchicken/spring-data-dynamodb/issues/160

If you have some solution please share

hfcipriano avatar Nov 11 '20 19:11 hfcipriano

Hey @asif-iiitm if you want please visit my issue link to see the solution. Probably should be the same for you.

hfcipriano avatar Nov 12 '20 22:11 hfcipriano