Skip to content

DynamoDB v1 Approach Proposal #246

Discussion options

You must be logged in to vote

This is an update to the proposal. There is no benefit to having the sort key for the proposal above. The sort key only sorts by partitions, and since each partition key is unique, the sort key would only sort one item per partition, and the benefits are lost.

The updated proposal is to only have a partition key, no sort key, and sort the list documents response on the adapter.

The partition key will remain a fast crypto hash of the hyper user's id though because I have seen in multiple places that auto-increment keys are a ddb anti pattern for a partition key. This is because ddb uses an internal hash to decide which partition to place an item in based on its key. This hash is proprietar…

Replies: 4 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@cawilson1
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by cawilson1
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants