System Design
5. Advanced Database ArchitectureAnimated
Vertical Partitioning
Splitting a table by columns.
The idea
Rarely used or large columns move to another table or store, keeping hot data small.
Watch it work
Press play, pause, or step through. Some animations have settings you can change.
- client
- gateway / proxy
- service
- cache
- data store
- queue / stream
Step one: add indexes and cache.
- step:
- 1/4
- at:
- App servers
1/7
The green dot is a request moving through the system.
Step by step
- 1Find hot and cold columns
- 2Split into two tables
- 3Join by key when needed
- 4Keep hot rows compact
Where it is used
Wide tables with big blobs.
Watch out for
Extra joins for queries that need both parts.