-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refactor: 식품에 따른 review 조회 N+1 문제 해결 #200
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
그 유명한 N+1 문제, 맛있었나요?
저도 얼른 만나서 맛보고싶네요 😋
고생하셨습니다💪
import zipgo.review.domain.Review; | ||
import zipgo.review.exception.ReviewException; | ||
|
||
public interface ReviewRepository extends JpaRepository<Review, Long> { | ||
|
||
@Query("select r from Review r join fetch r.adverseReactions where r.petFood.id = :petFoodId") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
이런 문법이 있었나?
했는데 JPQL이라는 친구였군요ㅋㅋㅋㅋ
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
마자용
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
수고했어 무민👏🏻
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
수고했어 민무~
📄 Summary
🙋🏻 More