Skip to content
StackDecode
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.

App serversPrimary (writes)Replica 1 (read…Replica 2 (read…
  • 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

  1. 1Find hot and cold columns
  2. 2Split into two tables
  3. 3Join by key when needed
  4. 4Keep hot rows compact

Where it is used

Wide tables with big blobs.

Watch out for

Extra joins for queries that need both parts.

Related