-->
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.  [ 1 post ] 
Author Message
 Post subject: Hibernate.load from cache slow when outside transaction
PostPosted: Wed Dec 21, 2005 9:15 pm 
Newbie

Joined: Thu Apr 08, 2004 11:47 am
Posts: 1
I'm using Hibernate 3.0.5 and I've run into a performance problem with Session.load when retrieving objects from the session-level cache. It seems the problem is that when running outside a transaction, each time an object is retrieved from the cache Hibernate iterates through every single item in the cache and sets the lock mode to LockMode.NONE. Is this step necessary, and is there any way to avoid it (other than only calling session.load inside a transaction)? It's eating up 33% of the time rendering one of my JSPs :(


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

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.