Question: Can a DynamoDB range key be a GSI key?
Yes, a DynamoDB range key can also be used as a GSI (global secondary index).It is common to use the same attribute as the range key and the GSI key. When you create a GSI, you can specify the range key attribute as the key to be indexed. This allows you to perform query operations on the range key attribute using the GSI and query and scan operations on the primary key attribute using the table.
Other Common DynamoDB FAQ (with Answers)
- Is DynamoDB based on MongoDB?
- What is DynamoDB used for?
- How is data stored in DynamoDB?
- How to enable DynamoDB monitoring?
- What are the best alternatives to DynamoDB?
- How many DynamoDB tables can I have at a maximum?
- Does DynamoDB support load balancing?
- Does DynamoDB Support SQL?
- Is DynamoDB open source?
- Do I need a middleware for DynamoDB?
- How resilient is DynamoDB?
- In DynamoDB, can I use UUID as the partition key?
- Is DynamoDB a memory store?
- Is DynamoDB serverless?
- Can colons and special characters be used in DynamoDB attributes?
Spend less time in the AWS console, use Dynobase.
First 7 days are. No credit card needed.
© 2023 Dynobase