Skip to content

Commit

Permalink
optimize: 라운지 left join fetch User
Browse files Browse the repository at this point in the history
  • Loading branch information
in-seo committed Jan 3, 2024
1 parent db30aba commit cde3c6a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@

public interface LoungeRepository extends JpaRepository<Lounge,Long> {

@Query("select l from Lounge l order by l.id DESC")
@Query("select l from Lounge l left join fetch User u where l.user.id = u.id order by l.id DESC")
List<Lounge> findAllDesc();
}

0 comments on commit cde3c6a

Please sign in to comment.