[jboss-dev-forums] [Design of EJB 3.0] - Re: Unnecessary read before update with merge()

epbernard do-not-reply at jboss.com
Wed Dec 6 20:36:29 EST 2006


To expand it a bit. If you expect mostly updates from your graph, saveOrUpdate is good, if you expect mostly unchanges objects in your graph, merge is good.

Hibernate optimize things under the hood (merge profile / batch update), the different does not matters in most cases

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3991830#3991830

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3991830



More information about the jboss-dev-forums mailing list