Batch Insert 설정 이해하기 그리고 JPA, JDBC 성능 비교
MySQL Bulk Insert 적용하기spring: datasource: url: jdbc:mysql://localhost:3306/db?rewriteBatchedStatements=true jpa: properties: hibernate: jdbc: batch_size: 50 # 드라이버에 일괄 처리를 요청하기 전 hibernate가 일괄 처리할 쿼리의 최대 개수 order_inserts: true # 삽입되는 엔티티 유형과 기본 키 값을 기준으로 재정렬 order_updates: true # 변경되는 엔티티 유형과 기본 키 값을 기준으로 재정렬주의할점으로는 IDENTITY ID 전략은 배치 INSERT를 사용할 수 없다.I..