https://aws.amazon.com/blogs/database/multi-key-support-for-global-secondary-index-in-amazon-dynamodb/
DynamoDB now supports up to 8 attributes in composite keys for global secondary indexes.
▫️Simpler Data Models: No more synthetic keys (
O#${orderId}#${itemId}#${createdAt}) to jam a bunch of values together for indexing purposes! Use the native attribute types (String, Number, Binary).▫️Efficient Queries: Query across multiple dimensions with up to 4 partition and up to 4 sort keys.
#DynamoDB