airhacks.fm podcast with adam bien cover image

Java Persistence: From DB over JDBC to Transactions

airhacks.fm podcast with adam bien

00:00

Do You Still See Projects With Auto-Commit Mode On?

I want it to be lazy, as you said, and to have someone do it for me. We end up being at the JDBC pre-pat statement level. I don't think that it's so popular because nowadays people use some data access framework, which is above JDBC. So they don't get this capability auto-commit. It's disabled by the framework. Even if you're executing three queries, it doesn't make sense to open three connections from the pool for every query. It still makes sense to reuse the same connection from the beginning to the end and execute those statements in the scope of the same connection. But yes, we can do transactions. We can do transactions

Transcript
Play full episode

The AI-powered Podcast Player

Save insights by tapping your headphones, chat with episodes, discover the best highlights - and more!
App store bannerPlay store banner
Get the app