开发者

NHibernate disables insert batching at the ADO level transparently if I use an identiy identifier generator. Why?

Related to this document :

NHibernate disables insert batching at the ADO level tran开发者_C百科sparently if I use an identiy identifier generator. Why?

If I use identity for generating identifier, How can I use batch processing?


Identity needs a round trip to the database, so you can know which id was generated. More details here :

  • http://ayende.com/blog/3915/nhibernate-avoid-identity-generator-when-possible
  • http://nhforge.org/blogs/nhibernate/archive/2009/03/20/nhibernate-poid-generators-revealed.aspx
  • http://fabiomaulo.blogspot.com/2009/02/nh210-generators-behavior-explained.html
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜