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