3 ms·
What do you consider naive? JDBC supports transactions, I’ve had success with that.
by pgwhalen 5y ago
What do you consider naive? JDBC supports transactions, I’ve had success with that.
- kaba0 5y agoAs I mentioned, you will have to roll back not only the database, but the relevant application state as well. This is really error-prone if repeated enough times, or the flow of control is through many different methods, etc.
- pgwhalen 5y agoBy application state, do you mean something like an in memory cache? I would prefer having no such state in the first place, and have all meaningful state in the DB to be pulled out or mutated as needed. I recognize that what you’re advocating for makes of sense in some applications, I just wanted to point out that I haven’t felt the need for it in my eight years of software development.