Question: Can a DynamoDB range key be a GSI key?
Answered by Rafal Wilinski
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)
- What is DynamoDB used for?
- Is DynamoDB good for analytics?
- Is DynamoDB NoSQL?
- Is DynamoDB based on MongoDB?
- How to dump multiple DynamoDB tables?
- Can DynamoDB store relational data?
- Are DynamoDB table names supposed to be unique?
- How to count rows in DynamoDB?
- How to access DynamoDB from outside?
- Is DynamoDB cost effective?
- Is DynamoDB SQL or NoSQL?
- What are the best alternatives to DynamoDB?
- Does DynamoDB Support SQL?
- Is DynamoDB PaaS or SaaS?
- Which AWS regions support DynamoDB?
Tired of AWS Console? Try Dynobase.
Try 7-day free trial. No strings attached.
Product Features
DynamoDB Tools
DynamoDB Info
© 2024 Dynobase