Handle insert_all() with more than 25 items
DynamoDB restricts the number of items that can be inserted during a batch write operation to 25 - so in previous versions, Repo.insert_all()
would fail if there were more than 25 items in the collection. In this release, we provide basic handling to allow for an unlimited number of records to be written in one transaction.
As we're not yet retrying items that fail to write during a batch operation, a list of any failed inserts will be logged as "UnprocessedItems".
See https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_BatchWriteItem.html for reference.