Skip to content

Commit

Permalink
fix : n+1문제 해결
Browse files Browse the repository at this point in the history
  • Loading branch information
kcsc2217 committed Dec 8, 2024
1 parent 782f592 commit ccf0af7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ public CustomSliceResponse PageFindLikePortfolio(Pageable pageable, Long userId,
.select(portFolio
)
.from(portFolio)
.leftJoin(portFolio.user, user)
.leftJoin(portFolio.user, user).fetchJoin()
.where(portFolio.portfolioId.in(targetIds))
.fetch()
.stream()
Expand Down

0 comments on commit ccf0af7

Please sign in to comment.