Introduction
Partition key distribution helps spread data evenly across storage to keep access fast and balanced.
Partition key: A single attribute chosen to divide data into partitions. No direct code syntax, but you define it when creating a DynamoDB table.
Partition key: UserID
Partition key: OrderID
Partition key: ProductCategory
{
"TableName": "Orders",
"KeySchema": [
{
"AttributeName": "OrderID",
"KeyType": "HASH"
}
],
"AttributeDefinitions": [
{
"AttributeName": "OrderID",
"AttributeType": "S"
}
],
"BillingMode": "PAY_PER_REQUEST"
}Pass the test and this pattern moves unknown