2021-05-03 - DynamoDB pagination
Revision as of 12:09, 3 May 2021 by Sven the Barbarian (talk | contribs)
Ideas
- can use Limit to test pagination
- NPM module - izara-shared#dynamodbSharedLib.query returns queryDetails which states whether more pages/results exist
- we need to consider all Query requests, can they hit limit and paginate? How do we handle, eg:
- We can restrict the number of records, eg we can use UserLimits to allow only 1000 NotificationGroups per user, and can trust Query will never exceed Dynamo pagination limit
- One script can keep requesting from Dynamo until all records received -> danger of script exceeding resources if no limit on number of records
- Use async flow to process parts of the logic in sections *this is the stronger method for large result sets
- if data . Maybe have a timestamp for any sets of data, send the last "limit" and data timestamp on to next lambda invocation, it can check the timestamp to make sure data is still the same..