Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | ||||
4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 | 12 | 13 | 14 | 15 | 16 | 17 |
18 | 19 | 20 | 21 | 22 | 23 | 24 |
25 | 26 | 27 | 28 | 29 | 30 | 31 |
Tags
- Kotlin
- java
- groupby
- 안드로이드스튜디오
- select
- join
- 카카오코테
- 정처기
- 티스토리챌린지
- doitandroid
- 알고리즘
- Android
- 안드로이드
- 코틀린
- 정보처리기사
- 기술면접
- 프로그래머스
- 스터디
- 인프런
- CS
- Til
- 자료구조
- SQL
- MySQL
- 혼공파
- 코테
- 혼공단
- 오블완
- 자바
- 혼공챌린지
Archives
- Today
- Total
목록n+1 (1)
Welcome! Everything is fine.

다음 getTodos() 메서드에서 발생하고 있는 N+1 문제를 @EntityGraph를 사용해 해결해야 한다.public Page getTodos(int page, int size) { Pageable pageable = PageRequest.of(page - 1, size); Page todos = todoRepository.findAllByOrderByModifiedAtDesc(pageable); return todos.map(todo -> new TodoResponse( todo.getId(), todo.getTitle(), todo.getContents(), todo.getWeather(), ..
TIL
2025. 2. 26.