Creating Amazon DynamoDB Tables with Local Secondary Indexes using the AWS SDK for Rust

Опубликовано: 13 Ноябрь 2024
на канале: StratusGrid
172
3

When you're initially getting acquainted with Amazon DynamoDB, the schema constraints might feel a bit simplistic. Depending on your application's query patterns, you can include additional Local Secondary Indexes (LSI) that sort your DynamoDB items on a different attribute than the table itself. In this video, we will start by understanding what DynamoDB Local Secondary Indexes are, and some limitations to be aware of when you're working with them. Then, we will do some live coding to understand how to add an LSI to a new DynamoDB table, when you create it with the AWS SDK for Rust. It's important to note that an LSI can only be created during the table creation time; they cannot be added after your DynamoDB table has already been created. Additionally, each LSI has a maximum partition size of 10 GB; the partition key of the LSI must match the partition key of the underlying table it references.