So to summarize, there is no way to use batch inserts if I use a POID,
correct ?

Unfortunately, most tables in my database already have an identity
column (there were design before I dive into nh), so I think I'm going
to have to stick with that.

On 11 mar, 17:43, Tuna Toksoz <[email protected]> wrote:
> There is a famous saying: The "native" or "identity" is the root of all evil
> (was it something like this ;) )
>
> The reason it is not batched is that NHibernate must know the id of your
> entity. If you use one of the PostInsertItentityGenerators(or Identity-like
> generators), they will be inserted and their id will be taken.
> You'll also don't have uow there, unfortunately.
>
> Tuna 
> Toksözhttp://tunatoksoz.comhttp://turkiyealt.nethttp://twitter.com/tehlike
>
> Typos included to enhance the readers attention!
>
> On Wed, Mar 11, 2009 at 7:40 PM, graphicsxp <[email protected]>wrote:
>
>
>
> > Ayende>  SQL Server 2005
>
> > Fabio > native
>
> > Tuna >  Thanks for the link.
>
> > Still not sure what to think of this.... I still don't understand why
> > my INSERT are not batched.
> > One still I realised though by reading this article, is that using a
> > generated key means nh does a select before each insert, and i'm not
> > sure I like that :(
>
> > On 11 mar, 17:15, Tuna Toksoz <[email protected]> wrote:
> > > Let me give the link Fabio
>
> > >http://fabiomaulo.blogspot.com/2009/02/nh210-generators-behavior-expl...
>
> > > Tuna Toksözhttp://tunatoksoz.comhttp://turkiyealt.nethttp://
> > twitter.com/tehlike
>
> > > Typos included to enhance the readers attention!
>
> > > On Wed, Mar 11, 2009 at 7:07 PM, Fabio Maulo <[email protected]>
> > wrote:
> > > > 2009/3/11 Ayende Rahien <[email protected]>
>
> > > >> what db are you using?
>
> > > > And which POID generator ?
> > > > ;)
> > > > --
> > > > 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]
For more options, visit this group at 
http://groups.google.com/group/nhusers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to