Multi-key support for Global Secondary Index in Amazon DynamoDB
Database Blog
This article announces multi-attribute composite key support for DynamoDB Global Secondary Indexes, enabling up to 8 attributes (4 partition keys and 4 sort keys) per GSI.
- GSIs now support up to four partition keys and four sort keys for flexible multi-dimensional queries
- Eliminates need for application-level attribute concatenation workarounds
- Each attribute maintains native data types (string, number, binary) without conversion
- Query patterns support equality on all partition keys, with range conditions on last sort key only
- Enables intelligent sharding techniques to reduce hot partition risks at scale
- Feature available at no additional cost beyond standard GSI pricing
- Practical example shows orders dashboard querying by customer, status, date, and amount
This feature simplifies DynamoDB data modeling by allowing native multi-attribute queries without concatenation, improving application efficiency and reducing complexity.
The AWS News Feed is currently looking for gold sponsors. If you want to support the AWS community and reach a large audience of AWS professionals, consider sponsoring the AWS News Feed.
Related articles
Nov 19
2025
2025
Amazon DynamoDB now supports multi-attribute composite keys in global secondary indexes
Feb 9
2026
2026
New in Terraform: Manage global secondary index drift in Amazon DynamoDB
Feb 3
2026
2026
Amazon DynamoDB global tables now support replication across multiple AWS accounts
Nov 17
2025
2025
Efficiently compare items across two Amazon DynamoDB tables
The AWS News Feed is currently looking for silver sponsors. If you want to support the AWS community and reach a large audience of AWS professionals, consider sponsoring the AWS News Feed.