Skip to content

Usage of same property as DynamoDBRangeKey and DynamoDBGlobalSecondaryIndexHashKey #3232

Answered by dscpinheiro
maaaxk asked this question in Q&A
Discussion options

You must be logged in to vote

You didn't share how you created the AmazonDynamoDBClient and DynamoDBContext, but by default the SDK will call the DescribeTable API prior to executing the query in order to:

  • Validate the information provided in the attributes
  • Fill in missing key or index information

This extra call allows your application to work even if you didn't specify the DynamoDBRangeKey attribute, but it also has a performance impact; see this blog post for more details: https://aws.amazon.com/blogs/developer/improved-dynamodb-initialization-patterns-for-the-aws-sdk-for-net/

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@maaaxk
Comment options

@dscpinheiro
Comment options

@maaaxk
Comment options

Answer selected by maaaxk
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
2 participants