-->
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.  [ 7 posts ] 
Author Message
 Post subject: Uncommitted read in select clause
PostPosted: Mon Oct 18, 2004 4:28 pm 
Newbie

Joined: Wed Oct 08, 2003 3:29 pm
Posts: 6
Hibernate version: 2.1

Name and version of the database you are using: IBM UDB 8

For performance reasons, I would like to be able to include the "WITH UR" select clause item which sets the isolation level for the query to "UNCOMMITTED READ".

Is there a way to do this on a Criteria or Query ?


Top
 Profile  
 
 Post subject:
PostPosted: Mon Oct 18, 2004 4:29 pm 
Hibernate Team
Hibernate Team

Joined: Mon Aug 25, 2003 9:11 pm
Posts: 4592
Location: Switzerland
You realize what you are doing?

_________________
JAVA PERSISTENCE WITH HIBERNATE
http://jpwh.org
Get the book, training, and consulting for your Hibernate team.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Oct 18, 2004 5:36 pm 
Newbie

Joined: Wed Oct 08, 2003 3:29 pm
Posts: 6
Yes. This is a DBA recommendation for our particular application.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Oct 18, 2004 5:37 pm 
Hibernate Team
Hibernate Team

Joined: Mon Aug 25, 2003 9:11 pm
Posts: 4592
Location: Switzerland
Did anyone tell him that it will very quickly destory the information in his database?

_________________
JAVA PERSISTENCE WITH HIBERNATE
http://jpwh.org
Get the book, training, and consulting for your Hibernate team.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Oct 18, 2004 5:40 pm 
Hibernate Team
Hibernate Team

Joined: Mon Aug 25, 2003 9:11 pm
Posts: 4592
Location: Switzerland
And if you really like to have uncommited data muddling the real information in your database, simply search for "dirty reads" in this forum. There have been others with DB2 before you asking the same question.

_________________
JAVA PERSISTENCE WITH HIBERNATE
http://jpwh.org
Get the book, training, and consulting for your Hibernate team.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Oct 19, 2004 10:16 am 
Newbie

Joined: Wed Oct 08, 2003 3:29 pm
Posts: 6
Thanks Christian - I appreciate the heads-up and I'll take this discussion up with my DBA! In the meantime, I'd still like to know what my options are. Is it possible to enhance the select clause for "WITH UR" on a Criteria and/or Query object?


Top
 Profile  
 
 Post subject:
PostPosted: Tue Oct 19, 2004 10:20 am 
Hibernate Team
Hibernate Team

Joined: Mon Aug 25, 2003 9:11 pm
Posts: 4592
Location: Switzerland
No, please read the other threads too.

_________________
JAVA PERSISTENCE WITH HIBERNATE
http://jpwh.org
Get the book, training, and consulting for your Hibernate team.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 7 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.