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
|