Skip to content

Support retreiving ConsumedCapacity on DDB mapper interactions #6526

@baumand-amazon

Description

@baumand-amazon

Describe the feature

This was reported for V1 and closed because no more changes were being made as V2 was released. I don't think this was ever addressed in V2.
aws/aws-sdk-java#1170

Use Case

Users of the mapper who need ConsumedCapacity stats to handle performance and scaling operations for their databases are stuck if they have already invested in using the mapper. There's no way to get that information without migrating away from the mapper.

It's operationally important for users to be able to track the sizes of their read/write requests for capacity planning.

Proposed Solution

No response

Other Information

One option to resolve it is to add mapper method alternatives like saveWithStats which returns a DynamoDBResultWithStats<Item, Stats>. This provides a relatively simple migration path for users already invested in the mapper to get the stats they need.

Acknowledgements

  • I may be able to implement this feature request
  • This feature might incur a breaking change

AWS Java SDK version used

any

JDK version used

any

Operating System and version

any

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature-requestA feature should be added or improved.needs-triageThis issue or PR still needs to be triaged.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions