Skip to content

Conversation

@andreiluculescu
Copy link

@andreiluculescu andreiluculescu commented Feb 4, 2026

Description

This pull request adds paginators for the DynamoDB BatchGetItemCommand (low level client) and BatchGetCommand (document client). Similar to the implementation in other AWS SDKs (Java, .Net, Go), these paginators work by repeatedly issuing batch get commands until the returned UnprocessedKeys object is missing (or empty), or a service error is returned.

Unlike the other paginators (paginateQuery and paginateScan), these batch get paginators do not mutate the received input.

Testing

This change was tested using a DynamoDB table with 100 items, each 400kb in size. The first test was with a provisioned capacity of 5 RCUs, and the second with 10,000 RCUs . In both tests, the paginators returned the 100 items in 7 pages of maximum 17 items each.

Checklist

  • If the PR is a feature, add integration tests (*.integ.spec.ts).
  • If you wrote E2E tests, are they resilient to concurrent I/O?
  • If adding new public functions, did you add the @public tag and enable doc generation on the package?

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@andreiluculescu andreiluculescu requested a review from a team as a code owner February 4, 2026 14:53
@andreiluculescu andreiluculescu changed the title Feat/paginate batch get item feat(dynamodb): add batch get item paginators for low level and document client Feb 4, 2026
@andreiluculescu andreiluculescu marked this pull request as draft February 9, 2026 12:52
@andreiluculescu andreiluculescu marked this pull request as ready for review February 9, 2026 12:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants