I'm using spring-batch and spring-data-jpa to read large csv data files and persist (or update existing) entries to a postgresql db using hibernate.
How do I have to configure spring to make using of batch/bulk inserts?
When I configure the job step, I set the chunk size accordingly:
StepBuilderFactory step;
step.chunk(10000).reader(csvReader).writer(jpaItemWriter).build();
Do I further have to be concerned about the hibernate.jdbc.batch_size property? Do I have to also set it, maybe to the same size as the chunk size?