taoensso / faraday

Amazon DynamoDB client for Clojure
https://www.taoensso.com/faraday
Eclipse Public License 1.0
238 stars 84 forks source link

missing page-size/max-result-size option with query #148

Closed brenourban closed 3 years ago

brenourban commented 3 years ago

Folks, I did not find the page-size option to control the number of items on one page. I'd like to do a paginated query, but as far as I understand, limit is not the best option to do a pagination.

I was following this doc : https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Query.Pagination.html

joelittlejohn commented 3 years ago

That doc describes using the option --page-size, and the --page-size option is translated to Limit in the DynamoDB request by the AWS CLI. If you want to see this happening you can invoke the CLI with the --debug flag.

To do pagination you want to use the :limit option and then request subsequent pages using :limit and :last-prim-kvs.