N+1문제

    컬렉션 fetch join 및 페이징 applying in memory 오류

    이번에 프로젝트를 하는 도중에 2023-08-01 23:49:22.440 WARN 2334 --- [nio-8080-exec-7] o.h.h.internal.ast.QueryTranslatorImpl : HHH000104: firstResult/maxResults specified with collection fetch; applying in memory! 2023-08-01 23:49:22.441 DEBUG 2334 --- [nio-8080-exec-7] org.hibernate.SQL 이런 경고로그가 발생했다 어 뭐지 ..? 코드를 다시보니 JPAQuery contentQuery = selectFrom(board) .leftJoin(board.comments, comment).fetchJoin() ...