Open
Description
DynamoDB UpdateItem operation receives an optional parameter named ReturnValues that allows us to get the item attributes as they appeared either before or after they were updated. Its valid values are: NONE | ALL_OLD | UPDATED_OLD | ALL_NEW | UPDATED_NEW.
PynamoDB high level API is always passing ALL_NEW.
Advantages of allowing the other options:
- We could save a GetItem operation when we need to update an item but also need to get its old values;
- We could save network bandwidth by sending NONE when we don't need the return values.
Thanks in advance.