-->
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: Disabling dirty autocheking
PostPosted: Tue Mar 03, 2009 7:06 pm 
Newbie

Joined: Tue Mar 03, 2009 5:46 pm
Posts: 2
Hi everybody.


I'm working with Hibernate 3+ and JSF 1.2.

I neeed to figure out how disable the dirty autocheking, it's getting me a lots of problems.

Any idea?

Thanx.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Mar 03, 2009 7:33 pm 
Beginner
Beginner

Joined: Wed Oct 03, 2007 4:10 am
Posts: 46
I don't think you want to do that. What kind of problem you have because of dirty checking?


Top
 Profile  
 
 Post subject:
PostPosted: Tue Mar 03, 2009 8:09 pm 
Newbie

Joined: Tue Mar 03, 2009 5:46 pm
Posts: 2
alexandrubarbat wrote:
I don't think you want to do that. What kind of problem you have because of dirty checking?


'cause, i just only use the data to show, i don't use the data for CRUD operations, the dirty autocheck produces too much overhead on my system, too much CPU utilization..., so i need to disable them.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Mar 04, 2009 3:47 am 
Expert
Expert

Joined: Wed Mar 03, 2004 6:35 am
Posts: 1240
Location: Lund, Sweden
Session.clear() or maybe Query.setReadOnly(true). It may also help to set Session.setFlushMode(FlushMode.MANUAL).


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.