dynamodb-writer
Write items to DynamoDB in batches
save()
Save an item to internal queue. On 25th item (DynamoDB maximum),
it will automatically call flush()
.
Important: A current limitation is that you cannot make successive calls
to save()
without waiting for callback first from each previous call to
save()
.
flush()
This will be called internally by save()
once internal queue is full.
You should call this once after all save()
calls are complete, to ensure
internal queue is emptied.
Example
const async = const DynamoDB = const DynamoDbWriter = const dynamodb = apiVersion: '2012-08-10'const writer = DynamoDbWriterconst items = async