-->
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.  [ 3 posts ] 
Author Message
 Post subject: Using (NOLOCK) on SQL server queries
PostPosted: Fri Jul 22, 2005 12:06 pm 
The environment I work in requires that I use (NOLOCK) whenever possible to prevent other processes from failing due to locking during table scans, etc (of course, we also try to prevent those :)).

Anyway, I was wondering if this was even possible with nhibernate at this point. I am fairly familiar with it (I have been using it for about two months) but haven't seen it mentioned anywhere and couldn't find anything in the source.

I don't mind hacking the source myself to add this, if someone could just point me in the right direction. I'm not even sure where it would belong.


Top
  
 
 Post subject:
PostPosted: Fri Jul 22, 2005 1:38 pm 
Regular
Regular

Joined: Mon May 16, 2005 2:15 pm
Posts: 59
I think you'll want to look at the Transaction Isolation levels and telling NHibernate to use READ UNCOMMITED which is basically the name thing as using a NOLOCK hint on a single query.

BOb


Top
 Profile  
 
 Post subject: Thanks!
PostPosted: Tue Jul 26, 2005 11:29 am 
Thanks for the info. Cheers!


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