AlgoViz

Introduction to data partitioning

easy 25 min

Data partitioning splits one large set of data into smaller parts by a rule, so that each part is easier to store, search and maintain.

Chapter mnemonic

Three ways to route a shard key

Read the shelf range, spin the hash wheel, or ask the desk.

You move a single tenant by editing a lookup entry. Which scheme is that?

Directory partitioning stores an explicit mapping from key to shard.