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)
- Can DynamoDB store relational data?
- Does DynamoDB support cross-region replication?
- Is DynamoDB a key-value store?
- Is DynamoDB certification worth it?
- Is DynamoDB ACID compliant?
- Is DynamoDB table region specific?
- Is DynamoDB columnar database?
- How many secondary indexes are allowed per table DynamoDB?
- Is DynamoDB distributed?
- Can DynamoDB store blob data?
- Is DynamoDB highly available?
- Does DynamoDB support nesting data?
- Can you store XML in DynamoDB?
- Is DynamoDB document-based?
- What are the differences between DynamoDB and Google BigTable?
Spend less time in the AWS console, use Dynobase.
First 7 days are on us. No strings attached.
Product Features
DynamoDB Tools
DynamoDB Info
© 2024 Dynobase