Amazon DynamoDB now supports primary keys composed of up to eight attributes in global secondary indexes (GSIs). While previously, partition and sort keys were limited to one attribute each, DynamoDB now supports up to four attributes each for the partition and sort keys. With multi-attribute keys, you no longer need to manually concatenate values into synthetic keys, which sometimes result in the need to backfill data before adding new indexes. Instead, you can create primary keys using up to eight existing attributes, making it easier to model diverse access patterns and adapt to new query requirements.
Multi-attribute partition keys improve data distribution and uniqueness. Multi-attribute sort keys enable flexible querying by letting you specify conditions on sort key attributes from left to right. For example, an index with partition key UserId and sort key attributes Country, State, and City lets you query all locations for a user, then narrow results by Country, State, or City.
Multi-attribute partition and sort keys are available at no additional charge in all AWS Regions where DynamoDB is available. You can create them using the AWS Management Console, AWS CLI, AWS SDKs, or DynamoDB API. To learn more, see Global Secondary Indexes in the Amazon DynamoDB Developer Guide.
Categories: marketing:marchitecture/databases,general:products/aws-govcloud-us,general:products/amazon-dynamodb
Source: Amazon Web Services
Latest Posts
- Amazon DynamoDB now supports multi-attribute composite keys in global secondary indexes

- Amazon FSx for Windows File Server now supports File Server Resource Manager

- Amazon OpenSearch Serverless now supports backup and restore through the AWS Management Console

- Amazon Connect now provides conversational analytics for voice and chat bots





