Spring boot :: JdbcTemplate을 사용하여 batch insert 기능 구현 by 김광훈 about Hibernate,JPA,Spring,SQL
- @Repository class UserJdbcBatchRepository { @Autowired lateinit var jdbcTemplate: JdbcTemplate fun batchInsert2(users: List
) { val sql = " insert into user (name - saveAll(users) } @Test @DisplayName("batchUpdate()를 사용한 batchInsert 테스트") fun batchInsertTest1() { val users: MutableList
= mutableListOf(); for (i in 1 - batchInsert1(users) } @Test @DisplayName("batchUpdate()를 사용하지 않은 batchInsert 테스트") fun batchInsertTest2() { val users: MutableList
= mutableListOf(); for (i in 1