Notice
Recent Posts
Recent Comments
Link
목록2025/02/26 (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. 00:14