JPA/Hibernate improve batch insert performance

后端 未结 2 1975
一整个雨季
一整个雨季 2021-01-07 04:57

I have a data model that has a ONE TO MANY relationship between ONE entity and 11 other entities. These 12 entities together represent one data packet. The problem I am havi

2条回答
  •  北荒
    北荒 (楼主)
    2021-01-07 05:27

    Here are two good answers on the subject

    • Hibernate batch size confusion
    • How do you enable batch inserts in hibernate?

    Notice that with identity generator (it is the generator used by default with play) batch insert is disabled.

提交回复
热议问题