Skip to content

Commit

Permalink
refactor: 키워드 조회 시 추천 포스트 fetch join -> batch size 사용
Browse files Browse the repository at this point in the history
  • Loading branch information
nuyh99 committed Nov 23, 2023
1 parent 0469d57 commit 5455a51
Showing 1 changed file with 0 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ public interface KeywordRepository extends JpaRepository<Keyword, Long> {

@Query("SELECT k FROM Keyword k " +
"JOIN Session s ON s.id = k.sessionId " +
"LEFT JOIN FETCH RecommendedPost r ON r.keyword.id = k.id " +
"WHERE s.curriculumId = :curriculumId ")
List<Keyword> findAllByCurriculumId(Long curriculumId);
}

0 comments on commit 5455a51

Please sign in to comment.