Noobie93
Noobie93

Reputation: 71

DynamoDB query criteria

This is a newbie question but I'm having a hard time wrapping my mind around DynamoDB concepts.

I have a table with A,B,C & D attributes where A is the hash key and B is the range key. The dao would take in A,B,C values and query dynamoDB to get D value. Have I modeled this right or should I rethink my keys for the query format I'm looking for?

Upvotes: 0

Views: 199

Answers (1)

Srini Sydney
Srini Sydney

Reputation: 580

You can pass only the partition key and the range key. In your case you can pass A, B but not C to retrieve D.

In order to pass A,B and C make ABC a concatenated partition key i.e A|B|C Implement the concatenation at the application layer and pass it to dynamodb

Upvotes: 1

Related Questions