Skip to content
engineering workbench.by StudyPort Academy
All glossary terms

GLOSSARY · A WORD, UNPACKED

shard key

the specific column or attribute chosen to route and partition rows across distributed database shards.

A little more detail

The shard key determines which physical node stores each record, typically evaluated via hash-based routing (hash(key) % total_shards) or range-based boundaries. Choosing the wrong shard key causes hotspots where a single shard receives all traffic, or forces costly scatter-gather queries across the entire cluster.

See it in practice

These lessons pair the idea with examples you can change and run.