I have an attribute in my table that is of type Document (JSON) where the value is a count:
{ "item1" : "5", "item2" : "7" }
Is there a way for the DynamoDB Document API to increment the values of the map atomically? My application will have several hosts incrementing the values, so simply using puts will not work as they will overwrite each other.
I know for integer attributes, we can have atomic counting with set #count = #count + :countVal in the update expression. Is there something similar for working with Documents?
Also, I noticed that there is no way for DynamoDBMapper to make atomic counter updates, so I do have to use the lower level Document API, right?