-->
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: Select N+1 issues
PostPosted: Fri Jul 10, 2009 3:10 pm 
Newbie

Joined: Fri Jul 10, 2009 2:53 pm
Posts: 1
I recently invested in NHProfiler to troubleshoot why my application was taking so long to load. I
have learned that many of my queries to the DB are N+1 and there are a ton of them.

I am using HQL to load most of my objects, not ICriteria. It's been difficult to find out how to
get around this.

I am using Lazy Loading and just tried enabling second level caching. I haven't seen a reduction in
calls and it's very costly.

Can anyone point me in the right direction? your help is greatly appreciated.


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.