Vertical partitioning
Splitting a table by columns into smaller tables, each in its own partition.
Example
Separating the (heavy) profile photo from the user's other 10 columns.
Test yourself: Vertical partitioning
Sharding
In sharding, every shard has the same schema and columns.
All 4 shards have the same 5 columns; what changes is which rows each has.
0/1
â–¶ Play