This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes JDBC and Relational Databases and the fly likes do we need to change transaction isolation level during life of a connection? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Databases » JDBC and Relational Databases
Bookmark "do we need to change transaction isolation level during life of a connection?" Watch "do we need to change transaction isolation level during life of a connection?" New topic
Author

do we need to change transaction isolation level during life of a connection?

raminaa niilian
Ranch Hand

Joined: Jul 14, 2005
Posts: 551
Hi
Thank you for reading my post.
As we have several transaction isolation level in jdbc connections, I want to ask is there some cases that we need to change transaction isolation level during life of a connection?

for example we use a connection to insert some student and now we change the isolation level to fetch some students?


Thanks
Ulf Dittmer
Rancher

Joined: Mar 22, 2005
Posts: 42958
    
  73
It would be very unusual to change the isolation level during the connection lifetime. While there may be a benefit in very high performance environments, that would require very careful planning up front, and a solid understanding of the internals of the database being used. In general there should be no need to do this.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: do we need to change transaction isolation level during life of a connection?
 
It's not a secret anymore!