accesspatterns.dev

Models

The template library

24 access-pattern designs. Pick one and it resolves into a real table on the engine, with its access patterns ready to run and the cost of each one read out beside the data.

Search covers what a model teaches, not only what it is called.

Start here

The primary key answers every read. No secondary index, nothing to keep in sync.

Working designs

The shapes most production tables take: a collection with an order, a second way in, a write that has to be safe.

The hard ones

Several techniques interacting - transactions, sharded writes, geohashing, many-to-many - where a wrong key is expensive to undo.