DynamoDB Batch Update

前端 未结 6 680
[愿得一人]
[愿得一人] 2021-02-11 16:23

Is there any API in DynamoDB to update a batch of items? There is an API to write new items in batches (BatchWriteItem) and update single item using UpdateIte

6条回答
  •  一向
    一向 (楼主)
    2021-02-11 16:59

    I know this is an old question by now, but DynamoDB recently added a Transaction api which supports update:

    Update — Initiates an UpdateItem operation to edit an existing item's attributes or add a new item to the table if it does not already exist. Use this action to add, delete, or update attributes on an existing item conditionally or without a condition.

    https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/transaction-apis.html

提交回复
热议问题