Skip to content

New feature to allow all ReturnValues valid values on update item #271

Open
@victoreufrasio

Description

@victoreufrasio

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.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions