Explain it in 60 seconds
Secondary indexes in sharded databases
System Design · Databases · Intermediate
How do secondary indexes work in a sharded database, and what are the options?
What a strong answer covers
Your AI report card counts how many of these ideas you cover.
- Local index: each shard indexes its data.
- Query must hit all shards.
- Global index: partitioned by indexed value.
- Fast lookup, async updates.
- Trade-off: write cost vs read fan-out.
Practise this topic
Start without signing up. Sign in free to get an AI report card on your answer.