The Real Fullstack

Databases & SQL

Indexes, isolation levels, pagination and replication.

9 challenges

D19The Million-Row ProblemAn order history page slows down as the table grows. Will a cache, or an index, fix it?Performance labEngineer9 minD20The Dirty ReadA loan is approved based on money that never existed.Timeline simulatorEngineer7 minD21The Phantom RowsThe daily report divides revenue by an order count from a different moment.Timeline simulatorSenior Engineer8 minD22The Lost TransactionFive items in stock, two customers buy three each — and both succeed.Timeline simulatorEngineer8 minD23The Slow PaginationPage 1 is instant, page 5,000 takes forever — and items repeat while you scroll.Performance labEngineer7 minD24The Replica That LiedUsers save their profile, reload, and see the old name.Flow simulatorSenior Engineer8 minD67The Invisible IndexLogin takes two seconds because the query no longer matches the index it was built for.Performance labEngineer7 minD68The Migration That Locked the TableA schema change that drops a column before the code stops reading it.Timeline simulatorSenior Engineer10 minD84The Transaction That Never EndedOne job keeps a transaction open for hours, and PostgreSQL can't clean up dead rows anywhere.Debugging labSenior Engineer9 min