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
- (Updated) New request and approval experience for Microsoft agents in the Microsoft 365 admin center [MC1134738]
![(Updated) New request and approval experience for Microsoft agents in the Microsoft 365 admin center [MC1134738] 2 pexels padrinan 1111367](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==)
- Power Pages version 9.8.1.x Early Upgrade Release [MC1215813]
![Power Pages version 9.8.1.x Early Upgrade Release [MC1215813] 3 pexels steve 30066064](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==)
- (Updated) App-only certificate-based authentication now available in SharePoint Online Management Shell [MC1188595]
![(Updated) App-only certificate-based authentication now available in SharePoint Online Management Shell [MC1188595] 4 pexels pok rie 33563 982263](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==)
- (Updated) Microsoft Teams: Private chat for organizers and presenters in structured meetings, webinars, and town halls [MC1188222]
![(Updated) Microsoft Teams: Private chat for organizers and presenters in structured meetings, webinars, and town halls [MC1188222] 5 pexels googledeepmind 25626589](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==)

![(Updated) New request and approval experience for Microsoft agents in the Microsoft 365 admin center [MC1134738] 2 pexels padrinan 1111367](https://mwpro.co.uk/wp-content/uploads/2024/08/pexels-padrinan-1111367-150x150.webp)
![Power Pages version 9.8.1.x Early Upgrade Release [MC1215813] 3 pexels steve 30066064](https://mwpro.co.uk/wp-content/uploads/2025/06/pexels-steve-30066064-150x150.webp)
![(Updated) App-only certificate-based authentication now available in SharePoint Online Management Shell [MC1188595] 4 pexels pok rie 33563 982263](https://mwpro.co.uk/wp-content/uploads/2025/06/pexels-pok-rie-33563-982263-150x150.webp)
![(Updated) Microsoft Teams: Private chat for organizers and presenters in structured meetings, webinars, and town halls [MC1188222] 5 pexels googledeepmind 25626589](https://mwpro.co.uk/wp-content/uploads/2025/06/pexels-googledeepmind-25626589-150x150.webp)
