Spring Boot JPA Bulk insert

﹥>﹥吖頭↗ 提交于 2019-12-01 23:42:08

To enable batch insert you need the batch_size property which you have in your configuration.

Also since a jdbc batch can target one table only you need the spring.jpa.hibernate.order_inserts=true property to order the insert between parent and child or else the statement are unordered and you will see a partial batch (new batch anytime an insert in a different table is called)

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!