• Image placeholder
  • 홈 페이지
  • 블로그 센터
  • 범주
Image placeholder

LazyLoding

JPA N+1문제

N+1의 근본적인 문제는 ORM과 실제 RDBMS의 차이로 인해 발생하는 성능관련문제다. 다음을 보자. 예를 들어 학생과 선생의 엔티티가 다음과 같은 관계를 가지고 있다고 하자. Problem 1)다음과 같이 짜여져 있을때 id=1인 학생의 엔티티를 가져올려면 어떻게 해야할까? 이때 실행되는 쿼리는 다음과 같다. SELECT * FROM Student student0 INNER JOIN Te...

FetchJoinJPALazyLodingFetchJoin

© 2022 intrepidgeeks.com

Privacy Policy Contact US Sitemap
🍪 This website uses cookies to ensure you get the best experience on our website. Learn more