Thanks. That makes sense. But do see my other reply as well. On Mar 29, 5:24 pm, Diego Mijelshon <[email protected]> wrote: > Also, in many cases you'll get better performance using batch size than > using FetchMany. > > XML: <collectionElement batch-size="x"/> > ConfORM: mapper.Customize<Parent>(pcc => pcc.Collection(p => p.Children, cpm > => cpm.BatchSize(x))); > or (to make it the default): mapper.AddCollectionPattern(mi => true, cpm => > cpm.BatchSize(x)); > > For best results, x should be equal to your usual page size. > > Diego > > On Mon, Mar 29, 2010 at 10:39, Fabio Maulo <[email protected]> wrote: > > Very good feature implemented by Steve!!! > > Why? > > because you can't use Skip-Take early fetching a collection. > > > 2010/3/29 Miha V <[email protected]> > > > It appears as though Skip and Take are not taken into account when > >> using FetchMany. > > >> The end results are OK, but the database returns all records. If I > >> omit FetchMany, then children are lazy-loaded but Skip and Take are > >> taken into account when generating the SQL. > > >> Miha > > >> -- > >> You received this message because you are subscribed to the Google Groups > >> "nhusers" group. > >> To post to this group, send email to [email protected]. > >> To unsubscribe from this group, send email to > >> [email protected]<nhusers%[email protected]> > >> . > >> For more options, visit this group at > >>http://groups.google.com/group/nhusers?hl=en. > > > -- > > Fabio Maulo > > > -- > > You received this message because you are subscribed to the Google Groups > > "nhusers" group. > > To post to this group, send email to [email protected]. > > To unsubscribe from this group, send email to > > [email protected]<nhusers%[email protected]> > > . > > For more options, visit this group at > >http://groups.google.com/group/nhusers?hl=en.
-- You received this message because you are subscribed to the Google Groups "nhusers" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/nhusers?hl=en.
