DynamoDB-仅当存在分区密钥和范围密钥时,批处理更新才
我有一个用例,在DynamoDB表中,我必须批量批量更新一个条件“分区密钥”和“范围密钥”的项目。 如果它们不存在,我不必更新该项目。
我当前的字段是 - PartitionKeyfield,Rangkeyfield,FieldForupDate,RandomKey1,RandomKey2。
“可以使用updateEtem的条件表达,但是在batchupdate中是否有类似的方法?
我知道
I have a use case where I have to batch update a certain number of items in DynamoDB Table with the condition "Partition Key" and "Range Key" exists.
If they do not exists, I do not have to update the item.
My current fields are - partitionkeyfield, rangekeyfield, fieldForUpdate, Randomkey1, RandomKey2.
I know that "ConditionExpression can be employed for UpdateItem but is there a similar approach for this in BatchUpdate?
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
PartiQl batchexecutestatement允许有条件的多个项目写作。常规API不允许有条件的批次写入
The partiQL batchExecuteStatement allows conditional writes of multiple items. The regular API does not allow conditional batch writes