0
votes

As per http://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_BatchWriteItem.html dynamodb does not support batchupdate only batchwrite/put is supported . But DynamoDBMapper supports batchWrite with a behaviour of UPDATE_SKIP_NULL_ATTRIBUTES. Does it mean internally mapper calls single single update instead of batchupdate for UPDATE_SKIP_NULL_ATTRIBUTES ?

1

1 Answers

1
votes

When you use BatchWrite, it replaces the existing items(Not update). Even if you use DynamoDBMapper, the functionality should be the same.

According to the DynamoDBMapper source code, SaveBehavior with UPDATE_SKIP_NULL_ATTRIBUTES, it ultimately calls BatchWriteItemRequest iteratively in 25 batch size, which replaces the existing items.

Check the following statement in AWS Class Reference Documentation.

NOTE: BatchWriteItem cannot update items. To update items, use the UpdateItem API.