Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EclipseLink » difference between PESSIMISTIC_WRITE and read?(what does it REALLY do?)
icon5.gif  difference between PESSIMISTIC_WRITE and read? [message #895258] Thu, 12 July 2012 09:36 Go to next message
elhanan Maayan is currently offline elhanan MaayanFriend
Messages: 131
Registered: November 2009
Senior Member
hi..

i'm trying to figure out what's the difference between pessimistic_write and real, implementation wise, as i see no evidence of it anywhere being implemented by code. (nor in hibernate as well).
Re: difference between PESSIMISTIC_WRITE and read? [message #899636 is a reply to message #895258] Wed, 01 August 2012 15:59 Go to previous message
James Sutherland is currently offline James SutherlandFriend
Messages: 1939
Registered: July 2009
Location: Ottawa, Canada
Senior Member

These are both implemented the same using a SELECT FOR UPDATE.

I think the spec was just allowing for some databases to treat these differently (but most don't).


James : Wiki : Book : Blog : Twitter
Previous Topic:@GeneratedValue strategy for History Policy
Next Topic:Very strange "primary key [null]" validation exception
Goto Forum:
  


Current Time: Sun Nov 23 21:34:42 GMT 2014

Powered by FUDForum. Page generated in 0.01989 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software