You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 27, 2023. It is now read-only.
According to this page, the queries on dynamoDB are limited to 1MB per result set and any aditional results can be retrieved by doing extra API calls using the LastEvaluatedKey value that is returned in the previous call.
Does flywheel deals with this "pagination" automatically?
Thanks.
The text was updated successfully, but these errors were encountered:
rcalsaverini
changed the title
Does flywheel automactically deals with the 1MB limit per API call in the queries?
Does flywheel automatically deals with the 1MB limit per API call in the queries?
Oct 1, 2014
Flywheel automatically handles pagination. This has been confirmed with unit tests when the number of results exceeds the limit, but the 1MB data limit has not been explicitly tested.
@stevearc What does that exactly mean? If I have more data than 1 MB for a query Flywheel will fetch it automatically under the hood with multiple requests?
And from the perspective of using the all() method - does this mean that I get a list with all results including those above 1MB back?
Under the hood you're going to get back a ResultSet when you perform a query. This is an iterator that will perform successive queries for you until there are no more results. It completely abstracts away the pagination so you should never have to worry about it.
all() will iterate to the end and give you a list of models that were built from the results. Compare with gen(), which returns a generator that will perform the successive fetches on-demand.
According to this page, the queries on dynamoDB are limited to 1MB per result set and any aditional results can be retrieved by doing extra API calls using the
LastEvaluatedKey
value that is returned in the previous call.Does flywheel deals with this "pagination" automatically?
Thanks.
The text was updated successfully, but these errors were encountered: