Question: Can a DynamoDB range key be a GSI key?
Answer
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)
- Can DynamoDB store images?
- Will I be charged for DynamoDB is it is inactive?
- Does DynamoDB support read replicas?
- Is LSI automatically created on DynamoDB?
- What does the DynamoDB query return?
- Why is DynamoDB bad?
- What language is DynamoDB written in?
- What type of database is DynamoDB?
- How to grab data from AWS DynamoDB?
- Does DynamoDB charge for storage?
- Who invented DynamoDB?
- Is DynamoDB HIPAA compliant?
- Does DynamoDB Support SQL?
- Is DynamoDB PaaS or SaaS?
- How many DynamoDB tables can I have at a maximum?
Spend less time in the AWS console, use Dynobase.
First 7 days are on us. No strings attached.
Product Features
DynamoDB Tools
DynamoDB Info
© 2023 Dynobase