Learn: Sharding splits data by a key
When one database is too big or too busy, split the data across several databases (shards), for example by user ID.
The risk is a hot shard: if one key gets most of the traffic, one shard does most of the work. Choose a key that spreads load evenly.
#tip · TIP-016
When one database is too big or too busy, split the data across several databases (shards), for example by user ID.
The risk is a hot shard: if one key gets most of the traffic, one shard does most of the work. Choose a key that spreads load evenly.
#tip · TIP-016