Indexes

A secondary index gives you a second access pattern over the same data — a different partition and sort key. Coming from SQL, the trap is treating a GSI like a B-tree index that's free to add. It isn't: a GSI is a replicated copy of your data with its own keys, its own cost, and its own consistency rules.

This section covers picking the right index type, keeping indexes cheap, and the gotchas that bite in production — stale reads and write throttling that traces back to an index, not the table.

0 of 7 readQuiz

Start with GSI vs LSI — the rest assume you know the difference.

Try DynoTable to inspect and query your indexes directly.