From Dev.to
Your database says "saved" before it touches the table. Here's why that's safe.
When your database says your transaction is saved, your row usually isn't in the table file yet. Pull the power cord in the middle of a write, and you still lose zero committed rows. That's not luck....