Skip to content

Projection support in Transactional Gets at the DynamoDBContext level #4322

@irina-herciu

Description

@irina-herciu

Describe the feature

Add projection support for DynamoDB transactional get operations exposed through DynamoDBContext in the AWS SDK for .NET.

When using DynamoDBContext to perform transactional get operations, it is currently not possible to specify a projection to retrieve only a subset of item attributes. All attributes are always returned.

This capability is supported by DynamoDB and exposed in other SDKs, but is missing from the high-level DynamoDBContext transactional APIs.

Use Case

I need this feature to reduce payload size and improve efficiency when performing transactional reads via DynamoDBContext.

Without projection support:

  • Transactional gets always return full items, even when only a few attributes are required
  • Network transfer and deserialization costs are higher than necessary
  • Transactional reads are less efficient than non-transactional DynamoDBContext reads, which already support projections

This makes it harder to optimize read-heavy transactional workflows.

Proposed Solution

No response

Other Information

No response

Acknowledgements

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

AWS .NET SDK and/or Package version used

AWSSDK.DynamoDBv2 4.0.13

Targeted .NET Platform

n/a

Operating System and version

n/a

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions