How to make BATCH tab in JPA?

I am using JPA with Hibernate persistence. We use JPA in the following configurations.

persistence-api 1.0 version hibernate-core 3.3.2.GA version hibernate-entitymanager 3.4.0.GA version 

Is it possible to use batch insert in JPA with the above configuration?

Please suggest how to make a BATCH insert. We want to insert several rows into one table without affecting database performance. Also indicate how many insert lines can be used in the package?

Thanks pending

+4
source share
1 answer

JPA itself does not have special support for inserting a package. However, since you are using Hibernate, take a look at: http://docs.jboss.org/hibernate/core/3.3/reference/en/html/batch.html

+8
source

Source: https://habr.com/ru/post/1269476/


All Articles