Ravi Sir's Cards › AWS
Unread sparse
This interview card covers Unread sparse. Indexing all messages as unread wastes space. Sparse GSI attribute only while unread. Mark unread attr , then GSI query , then remove attr on read.
Read card text
What this card says
What it is
Indexing all messages as unread wastes space.
Why it matters
Sparse GSI attribute only while unread.
sparse GSI
How / example
Mark unread attr → GSI query → remove attr on read.
Clear on open.