수정, 삭제 벌크 연산
대량 데이터 수정
@SpringBootTest
@Transactional
public class QuerydslBasicTest {
@Test
void bulkUpdate() {
long count = queryFactory
.update(member)
.set(member.username, "비회원")
.where(member.age.lt(28))
.execute();
}
}update member
set username=?
where age < ?
update member
set username=NULL
where age < ?대량 데이터 1씩 더하기
대량 데이터 삭제
Last updated