How to put multiple items in a single request?
-
04-12-2019 - |
Question
I use BatchGetItemRequest for getting multiple items across tables in a single request. I would like to do the same for updates i.e. How do i insert/update multiple items across tables in a single request?
Solution
Batch put and delete are available now (they call it BatchWriteItem): http://docs.amazonwebservices.com/amazondynamodb/latest/developerguide/API_BatchWriteItems.html
However, you still can not update multiple items in a single request.
OTHER TIPS
Update
As somedave pointed out already (+1), inserting/deleting multiple items across tables similar to getting items across tables via BatchGetItem has meanwhile been added and made available in the AWS SDKs as of April 19, 2012 accordingly, see BatchWriteItem for details.
Initial Answer
Inserting/Updating multiple items across tables similar to getting items across tables via BatchGetItem isn't available yet for Amazon DynamoDB (despite being an obvious feature indeed) - you might want to file a respective feature request in the Amazon DynamoDB forum.