michaellavelle / spring-data-dynamodb

Simplifies the development of creating an Amazon DynamoDB-based Java data access layer
https://derjust.github.io/spring-data-dynamodb/
Apache License 2.0
169 stars 284 forks source link

Jpa Hitting performance impact it internally uses scan operation #93

Closed jitendra-maurya0 closed 4 years ago

jitendra-maurya0 commented 6 years ago

What @EnableScan does there is no documentation. it seems like it hitting performance impact of dynamo db Using this getting ProvisionedThroughPutExceededExcecption. @derjust is there any better way to query records instead of scan. If you have any suggestion please guide me.

derjust commented 6 years ago

Hi @Cybertran ! The development of this project happens now here

It sounds a bit strange that a Scan is hitting the ProvisionedThrough**Put**ExceededExcecption. @EnableScan is a marker annotation to allow a method to use a Scan operation - as it is expensive and scans the whole table.

You should create GSIs and perform Querys: