N + 1 문제 발견
#377
Replies: 2 comments
-
공유 감사합니다 같이 발견했을 때의 기쁨을 아직 잊지 못하겠어요 |
Beta Was this translation helpful? Give feedback.
0 replies
-
Fetch Join, Lazy Loading으로 해결했습니다 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
소위 N + 1 문제라 일컬어지는 상황을 마주한 것 같아 자료 남기고 공유합니다.
다같이 해결해보면 좋겠습니다.
API 와 쿼리
특정 여행의 모든 감상을 조회하는 API
를 실행했을 때 쿼리는 아래 순서로 실행됩니다.이후 아래 쿼리가 10번 실행됩니다.
이때 실제 조회되는 감상 데이터도 10개 입니다.

DB schema
code
Beta Was this translation helpful? Give feedback.
All reactions