COMMIT Returned OK. After the Power Came Back, the Row Was Gone.
Follow one row through twelve steps, from INSERT to a byte that survives a power cut.
43 long-form articles on how production systems fail, why, and the fixes that held.
Follow one row through twelve steps, from INSERT to a byte that survives a power cut.
A timeout is not a failure, and one header is not enough to stop a double charge.
The code was inside a transaction, and it still sold three tickets when only one was left.
Page 1 loads in 8 ms. Page 5,000 takes four seconds, and the index is not the problem.
Reading your own writes is easy to define and hard to build without melting the primary.
Every process will be told to stop. The question is whether it gets a warning it can act on.
"Let the database handle it" works until the write rate grows a hundred times.
Your primary key decides how every insert lands in the index.
DELETE looks like the simplest statement. Under concurrent load it is the most expensive one.
The index existed. The query was written so the database could not use it.