enGMzizo / copy-dynamodb-table

Copy Dynamodb table to another in the same or different zone , It is 100% safe. Speed depends on your destination table user-defined write provisioned throughput
130 stars 38 forks source link

Do not try to put empty item lists #5

Closed Floby closed 6 years ago

Floby commented 6 years ago

This fixes a bug when the total number of items to copy is an exact multiple of 25 (which is the page size). Otherwise, at the end of the last page, it tries to put the "next" page of empty items.

If this PR is accepted, I'd very much appreciate a publication of a new version on npm :D

Floby commented 6 years ago

Hey! thanks for picking this up =)