When you associate an entity with identity to the session (such as by calling Save() ).NH has to go to the DB immediately, in order to generate the entity id.
On Fri, Nov 7, 2008 at 11:00 PM, Jon Palmer <[EMAIL PROTECTED]>wrote: > I've seen this comment before but never found a good explanation of why > identity is not recommended. Is there a good write up of the problem and > what the various solutions are? > > > > Thanks > > Jon > > > > *From:* [email protected] [mailto:[EMAIL PROTECTED] *On > Behalf Of *Fabio Maulo > *Sent:* Friday, November 07, 2008 8:28 AM > *To:* [email protected] > *Subject:* [nhusers] Re: Second Level Cache on Insert > > > > 2008/11/7 Ayende Rahien <[EMAIL PROTECTED]> > > And, in general, it is not recommended to use identity for other reasons. > > usage of batching is one good reason > > > > It is an hard and heavy battle to fight. > > > > -- > 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 -~----------~----~----~----~------~----~------~--~---
