Ravi Sir's Cards › AWS
GSI and LSI
This revision card explains GSI and LSI. A second access pattern appears after launch. It describes GSI = new PK/SK for Queries. LSI = same PK, different SK; created with the table. The how-to section covers how to add GSI email-index; Query by email without Scan. An example on the card is find user by email for login , then GSI on email.
Read card text
What this card says
Why do we need it?
A second access pattern appears after launch.
What is it?
GSI = new PK/SK for Queries. LSI = same PK, different SK; created with the table.
How to do it
Add GSI email-index; Query by email without Scan.
Example
Find user by email for login → GSI on email.