Shard Key
noun
say it: “SHARD KEE” /ˈʃɑrd kiː/
The field or fields MongoDB uses to decide which shard, or group of servers, stores each document of a collection that is split across them.
What is Shard Key?
The shard key is the field (or fields) MongoDB uses to split a collection across shards. It is hard to change later, so choose one that spreads data and queries evenly.
In a sentence
- “The orders collection was split by a shard key on customerId.”
- “A poor shard key sends most of the writes to one shard.”
Level: Freelancer · More MongoDB terms at this level
Updated