-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 posts ] 
Author Message
 Post subject: What is the difference between isolation and pessimistic loc
PostPosted: Tue Jun 14, 2005 10:17 pm 
Newbie

Joined: Tue Jun 14, 2005 10:07 pm
Posts: 3
What is the underlying difference between the isolation level and the pessimistic locking?
Transaction can be isolated by setting the isolation level , a pessimistic locking can prevent concurrent access. They can do somthing in common.So what is the underlying difference of datebase between them?


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jun 14, 2005 10:22 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 12:50 pm
Posts: 5130
Location: Melbourne, Australia
Are you asking a question about ANSI SQL in the Hibernate forum?


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jun 14, 2005 10:30 pm 
Newbie

Joined: Tue Jun 14, 2005 10:07 pm
Posts: 3
Sorry, I must post in a incorrect forum.Pls delete it.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jun 14, 2005 10:48 pm 
Beginner
Beginner

Joined: Mon Jun 13, 2005 5:52 pm
Posts: 43
Isolation levels are defined as an ANSI standard. How a particular vendor enforces the isolation level may vary from platform to platform, AFAIK.

For example, in Oracle reads do not block writes to the same record, and vice versa. Only if you try to update a record that has been modified by another uncommitted transaction will your transaction block.

Hibernate does not do any locking itself--it delegates all of this to the underlying RDBMS platform. See the documentation for your platform to learn more how it handles locking.

This looks like a pretty good overview of isolation levels:

http://www.orafaq.com/articles/archives/000044.htm


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.