Primary Key with only a Partition Key
Chooses which partition data is written to.
Overview
Partition Key uniqueness
Must be unique when using a simple primary key.
Important Points
Partition Key Definition
Must be unique.
Important Points
Partition Key Length
Can be 1 to 255 characters and is case-sensitive.
Important Points
New Data ID and Date
ID: 1002
Date: 1993-01-05
Data Partitioning
Existing Partitions
Partition A: ID: 1000 Date: 1993-01-03
Partition B: ID: 1001 Date: 1993-01-04
Partition C: ID: 1002 Date: 1993-01-05
Data Partitioning
DynamoDB’s Internal Hash Function
It’s a secret; the algorithm for deciding the partition for writing data is not disclosed.
Internal Mechanism