36/41
Part 7 of 7 · Follow-upsLearn

What if the history is too big for one machine?

Shard by key: hash each key to one machine. A key's whole history then lives in one place, and a read is one machine and one binary search.

Old history can move to files sorted by key and time, with a small index of the first entry in each block. Binary search the index, then the block.