I've now managed to find some hint of documentation on Fluent NHibernate's HiLo-generator. It calls this parameter "maxLo", and the meaning should be the same as for XML-mapping: http://nhforge.org/doc/nh/en/index.html#mapping-declaration-id-hilo
What it means can be described as "the number of ids to generate for each high-part fetched from the database". So 0 will get 0 ids for each high-part, which, based on you description seem to be the same as specifying 1. Give it "200" instead and you should see a difference. /Oskar 2009/11/24 Tazer <[email protected]>: > It's where the hilo sequence should start. So if you write 1000 next > id will be 1001. But still dont get why i got db request on every > object. > > On 23 Nov, 17:26, Oskar Berggren <[email protected]> wrote: >> It seems impossible to find reference documentation for the HiLo >> construct in fluent nhibernate. >> >> What does that number, 0, mean? I've seen examples where this is given >> as 1000 instead. Is this the number of objects that should be created >> for each hi_part fetched from the database? >> >> /Oskar >> >> 2009/11/23 Tazer <[email protected]>: >> >> > Well its not much to it (using fluentnhibernate). >> >> > Id(x => x.Id).GeneratedBy.HiLo("0"); >> >> > Rest should handle it self? >> >> > On 23 Nov, 15:59, Oskar Berggren <[email protected]> wrote: >> >> Maybe there is a problem with your id generator. >> >> >> /Oskar >> >> >> 2009/11/23 Tazer <[email protected]>: >> >> >> > Hello , >> >> >> > Im trying to insert around 20000 object in batches of 256. But the >> >> > problem im getting is that HiLo select for every object im inserting >> >> > so it makes 40000 request to the database (select/update) But what i >> >> > have read it should have it internaly when selected ones in the >> >> > SessionFactory? And im just using one SessionFactory. Have tried both >> >> > with normal session and the statelessSession. >> >> >> > -- >> >> >> > 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 >> >> > athttp://groups.google.com/group/nhusers?hl=. >> >> > -- >> >> > 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 >> > athttp://groups.google.com/group/nhusers?hl=. > > -- > > 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. > > > -- 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.
