Ravi Sir's Cards › AWS
New PK or same PK?
This comparison card contrasts New PK or same PK. GSI: Own PK/SK anytime. It also notes eventually consistent. LSI: Same PK different SK. It also notes create-time. It can be strong.
Read card text
What this card says
New PK or same PK?
GSI
Own PK/SK anytime; eventually consistent.
LSI
Same PK different SK; create-time; can be strong.
Key points
Most alternate accesses.
Rare same-PK sorts known at create.
Example
Create GSI online
Use when
Default.
Only if sure.