-->
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.  [ 2 posts ] 
Author Message
 Post subject: Hibernate filter on collection generates multiple selects
PostPosted: Fri Jun 17, 2005 9:50 am 
Beginner
Beginner

Joined: Thu Mar 03, 2005 9:19 pm
Posts: 22
Hi,

I am trying to initialize a collection in MyObject. I used filter like this


session.createFilter(MyObj.getCollections(), "order by this.createDt")
.setFirstResult(0)
.setMaxResults(20)
.list();

This works fine. However, the problem is, I am expecting one select statement generated. But instead, in Hibernate3, 20 select statements are generated. This results in a performance degrade...

So, my friend, Is that the correct behavior or am I doing something wrong?

Thanks,

Joe


Top
 Profile  
 
 Post subject: Same issue
PostPosted: Sat Apr 08, 2006 1:29 am 
Regular
Regular

Joined: Sat Jan 22, 2005 6:57 pm
Posts: 50
Location: Chicago
I too am having the same issue. Does not seem correct to me as well. Did you find out anything?


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