r/programming • u/fagnerbrack • 3d ago
How one connection kills a database
https://planetscale.com/blog/debugging-live-database-connections
0
Upvotes
r/programming • u/fagnerbrack • 3d ago
4
u/Top-Emergency8630 2d 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).
2
u/Bitter_Ad3906 2d 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.