3 ms·
I like the approach of tailoring the app to the use case, so I'm not arguing you should do something differently. The database has commit for exactly this reas
by krab 6y ago
I like the approach of tailoring the app to the use case, so I'm not arguing you should do something differently.
The database has commit for exactly this reason. If you lose power, you will not acknowledge the commit to the client, so the client may retry. For example, the end user may get an error page. This is different from a case when the app would show modified values, but the next day, the modifications would be gone.
With the database, you still have the problem, that after a user sees an error, the transaction might have suceeded. Eg if connection drops at the moment when the DB receives the commit command.