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 at 
http://groups.google.com/group/nhusers?hl=.


Reply via email to