<https://s12.postimg.org/69il1afwd/screenshot_708.png>

This was occuring in NH 3.3 and I thought it would be corrected in 4 but 
still behaves the same. 
<https://s12.postimg.org/69il1afwd/screenshot_708.png>

Using NH 4.0 with default_batch_fetch_size of 400 and mappings configured 
to Lazy load refs - the batching appears to 'count down' when number of 
queried records goes below the batch_size value WHICH RESULTS IN extra 
queries which could have been fulfilled in a single query without any extra 
penalty - what is the point of doing this??
<https://s12.postimg.org/69il1afwd/screenshot_708.png>


<https://s12.postimg.org/69il1afwd/screenshot_708.png>


<https://s12.postimg.org/69il1afwd/screenshot_708.png>

<https://s12.postimg.org/69il1afwd/screenshot_708.png>



https://github.com/nhibernate/nhibernate-core/search?utf8=%E2%9C%93&q=GetNextBatchSize%28int+batchSize%29


private static int GetNextBatchSize(int batchSize) 
{ 
if (batchSize <= 10) 
{ 
return batchSize - 1; // allow 9,8,7,6,5,4,3,2,1 
} 
else if (batchSize / 2 < 10) 
{ 
return 10; 
} 
else 
{ 
return batchSize / 2; 
} 
}

-- 
You received this message because you are subscribed to the Google Groups 
"nhusers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to nhusers+unsubscr...@googlegroups.com.
To post to this group, send email to nhusers@googlegroups.com.
Visit this group at https://groups.google.com/group/nhusers.
For more options, visit https://groups.google.com/d/optout.

Reply via email to