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

Respect the pagination size for queries #62

Closed derjust closed 6 years ago

derjust commented 9 years ago

This change respects the pagination size as provided from a Pageable object given to a findXXX method. Mostly important in conjunction with lazy list processing via

DynamoDBMapperConfig.Builder builder = new DynamoDBMapperConfig.Builder();
builder.setPaginationLoadingStrategy(PaginationLoadingStrategy.ITERATION_ONLY);

as this loads the result set of a query page-by-page. Also see the comments in com.amazonaws.services.dynamodbv2.datamodeling.PaginatedQueryList<T> as used by org.socialsignin.spring.data.dynamodb.core.DynamoDBTemplate.query(Class<T>, QueryRequest)

derjust commented 6 years ago

Now tracked via https://github.com/derjust/spring-data-dynamodb/pull/117