Why is hibernate batching / order_inserts / order_updates disabled by default?

前端 未结 2 759
暗喜
暗喜 2021-01-31 19:58

are there any reasons why hibernate batching / hibernate.order_updates / hibernate.order_inserts are disabled by default? Is there any disadvantage when you enable a batch size

2条回答
  •  别跟我提以往
    2021-01-31 20:03

    The documentation here: https://docs.jboss.org/hibernate/stable/orm/userguide/html_single/chapters/batch/Batching.html

    says there may be a performance penalty for using these properties. I would assume this is the reason they are not set by default.

提交回复
热议问题