How to update multiple items in a DynamoDB table at once

前端 未结 4 707
迷失自我
迷失自我 2020-12-14 16:02

I\'m using DynamoDB and I need to update a specific attribute on multiple records. Writing my requirement in pseudo-language I would like to do an update that says \"update

4条回答
  •  孤城傲影
    2020-12-14 16:32

    As you noted, DynamoDB does not support a batch update operation. You would need to query for, and obtain the keys for all the records you want to update. Then loop through that list, updating each item one at a time.

提交回复
热议问题