I am using spring boot and spring data jpa with hibernate, japrepository.save(List)
took 20 minutes to save 8000 records to oracle database. can some one help me how to solve it. Adding spring.jpa.properties.hibernate.jdbc.batch_size=1000
in application.properties also didn't help.
application.properties
server.servlet-path = /*
spring.datasource.jndi-name=jdbc/mydatasource
spring.datasource.testWhileIdle = true
spring.datasource.validationQuery = SELECT 1
spring.jpa.database-platform=org.hibernate.dialect.Oracle10gDialect
spring.jpa.properties.hibernate.jdbc.batch_size=1000