Demo: Creating A Global Secondary Index
Working with GSI.
We'll cover the following...
Creating a GSI with the table
Let’s go back to our MusicColection
example. We want a table that can be used as a query for the following use cases:
-
Creating a playlist of all the songs produced by a particular
Artist
. -
Creating a playlist of all the songs belonging to a
Genre
.
Now, this is a new table that we want to create. We can create the GSI while creating the table. We should keep Artist
as the ...