Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
💡 작업 내용
💡 자세한 설명
CollectingBox와 Location은 일대일 단방향 연관관계로, Location은 LAZY 로딩으로 설정되어 있습니다.
이 때문에 수거함 조회 시 수거함 조회 쿼리 1번과 각 수거함에 연관된 위치를 가져오기 위해 N번의 추가 쿼리가 나가는 N+1문제가 발생합니다.
따라서 fetch join 을 사용해 연관된 엔티티를 한번에 로드하도록 수정했습니다.
✅ 셀프 체크리스트
closes #95