A DynamoDB Query returns a LastEvaluatedKey. The application needs every matching item, including when a page has few returned records. What should the developer do?

Published
  1. Replace the query with a full-table scan and ignore scan pagination.
  2. Stop whenever one page contains fewer records than the requested limit.
  3. Continue using LastEvaluatedKey as ExclusiveStartKey until no continuation key remains.
  4. Restart from the beginning for every page without an exclusive start key.

Comments — 0