Hibernate : dynamic-update dynamic-insert - Performance Effects

后端 未结 3 2044
太阳男子
太阳男子 2020-12-05 07:15

Using dynamic-update or dynamic-insert has positive, though generally slight only on performance, as also mentioned by http://www.mkyong.com/hibernate/hibernate-dynamic-upda

3条回答
  •  情书的邮戳
    2020-12-05 07:44

    The other reason is when updating a previously detached object. For that to work the record first needs to be fetched from the db, as a detached object isn't in the session cache. Hence dynamic update in this case requires an extra round trip to perform the initial fetch.

提交回复
热议问题