API calls not adding Limit
param and Pageable
object ignored
#232
Labels
Limit
param and Pageable
object ignored
#232
(this might be a duplicate of #89 but I'm not completely sure as this is also related to query methods)
Expected Behavior
Repository should consider
Pageable
object and AWS API calls should have theLimit
param.Actual Behavior
When using
Pageable
objects in repository methods, spring data seems to be ignoring the page request. When limiting the results via the query method name (such asfindTopYByX
) the results seems to be limited, but by looking at AWS SDK logs, the actual query sent to DynamoDB actually has noLimit
param so I suppose the limit is done in memory.Steps to Reproduce the Problem
Given a Java project with spring boot, lombok, junit 5 and proper logging configured, the following classes will demonstrate the problem:
The output can be checked here: https://gist.github.com/csokol/f6b88e7f55002f80150ebdf5f8ca7d6a
By looking at lines 94 and 118 of the gist. It's possible to see that the queries are sent without the
Limit
param.Specifications
The text was updated successfully, but these errors were encountered: