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.
9 articles tagged MySQL.
Follow one row through twelve steps, from INSERT to a byte that survives a power cut.
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.
Inserts fail with 'Duplicate entry 2147483647', and nobody inserted a duplicate.
"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.
The index was bigger than the data, and every query paid for it.