-->
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: How to use batch-size on collection associations?
PostPosted: Fri Dec 09, 2005 4:03 pm 
Regular
Regular

Joined: Tue May 31, 2005 9:55 am
Posts: 67
I am setting batch-size on some of my collection associations, but I am not seeing the expected batch queries.

Lets say I have a 1-M relationship between Person and Address and I set batch-size to 5

Assume I have 10 Person objects loaded in the Session with unitialized Address collections. When I access the first Persons Address collection, I assumed NHibernate will issue a query thats selects the first 5 Person Address collections. When I then access another unitialized Person Address collection, it will query for the next 5.

Is this the expected behavior for NHibernate. For some reason, I see batching occuring, but I do not see the expected queries that match the batch-size.

thanks,
craig


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.