Setting the Hibernate batching size can be accomplished via hibernate.jdbc.batch_size. In Spring, we need to add in application properties per the following setting (the recommended batch size is between 5 and 30):
spring.jpa.properties.hibernate.jdbc.batch_size=15