From the course: AWS for Developers: DynamoDB
Unlock the full course today
Join today to access over 22,600 courses taught by industry experts or purchase this course individually.
Composite keys and sort keys - Amazon Web Services (AWS) Tutorial
From the course: AWS for Developers: DynamoDB
Composite keys and sort keys
- [Instructor] As I've said before in this course, ideally, you want just one DynamoDB table for your entire application. But how do we continue to do that and get the speed we desire with more items? Back to our baseball example. We've already said that we want to partition our data based on team name or team ID, but how do we store different kinds of data about baseball games on team name or team ID? Well, this is where composite keys come in. Composite keys allow us to save different kinds of data, but still evenly spread the requests across multiple partitions. Remember, we said that an application that tracks at-bats in a professional baseball game should store players, teams, games, as well as at-bats. How do we create our partition keys to represent this data in a single table? Imagine if we have table called BaseballApp. Well, we could save our roster keyed with the word PLAYERS, and then <TeamID>. We could store information about our teams, such as the stadium location…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
NoSQL versus relational DBs4m 36s
-
(Locked)
DynamoDB versus MongoDB2m 8s
-
(Locked)
Data modeling in DynamoDB2m 57s
-
(Locked)
Composite keys and sort keys4m 1s
-
(Locked)
Pricing and capacity planning in DynamoDB3m 47s
-
(Locked)
Demo: DynamoDB costs in the AWS Pricing Calculator3m 57s
-
(Locked)
Creating secondary indexes in DynamoDB: GSI and LSI2m 37s
-
(Locked)
Demo: Provisioning a DynamoDB table in the AWS admin console3m
-
-
-
-
-