Partition key
The column that decides which shard each row goes to.
Example
With user_id % 4, user 1,002 goes to shard 2.
Test yourself: Partition key
Sharding
The column deciding which shard each row goes to is the ___ key.
If the key is user_id, all of user 42's rows land on the same shard.
0/1
â–¶ Play