-->
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: Batch-size on collections
PostPosted: Tue Feb 19, 2008 6:15 am 
Newbie

Joined: Tue Feb 19, 2008 6:02 am
Posts: 1
Hello,

I'm new to nHibernate (coming for Hibernate 3.2) and I'm wondering whether there is a way to set the default batch-size of collections.

My understanding (from http://www.hibernate.org/hib_docs/nhibernate/1.2/reference/en/html/performance.html#performance-fetching-batch) is that setting a batch-size greater than 1 on a collection will ensure that I don't run into the N+1 query problem (as it will be (N/batch-size)+1), but only start querying when I first access the collection.
This seems like a sensible default approach (and I believe I can configure this in the Java version using hibernate.default_batch_fetch_size).

Is there any way to set a default in nHibernate, or do I need to set this on each collection?

Thanks
Fried


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.