So I am using Pagination
with the latest DynamoDBEnhancedAsyncClient
.
However while applying the limit() on the QueryEnhancedRequest
its not limiting the items on a single page. Example: if I pass limit(1)
still its showing 2 records in the result
. Not sure if the limit()
takes number of items as the parameter or the number of pages. If its pages, is there any way to limit the number of items
per page? We know that DDB creates pages with max size of 1MB. but our json records have size in bytes, which means that 1000s
of records will be fetched per page. Isn't this inefficient? Is it possible to limit the items
per page?