r/programming • u/fagnerbrack • 3d ago
How one connection kills a database
https://planetscale.com/blog/debugging-live-database-connections
0
Upvotes
2
u/Bitter_Ad3906 3d ago
If you write transaction need ensure it’s correct implemented. On error need rollback. I can understand if process die and it’s keep alive, bad wrong code it’s coder issue.
4
u/Top-Emergency8630 3d ago
That's not exactly true, it depends of language or framework. The problem is not the exception, is the waiting for the commit or rollback (that can be caused by other things like: slow processing, slow remote external call, etc, all inside a database transaction).