You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
findAllWithMembers(), findAllWithMembersByDate() 에서 LEFT JOIN FETCH r.members 사용 시 OneToMany 관계로 인해 카디널 곱 발생.
예약 1건에 멤버 N명이면 SQL 결과 행이 N배로 증가하여 메모리 낭비 및 페이징 불가 문제.
문제
findAllWithMembers(),findAllWithMembersByDate()에서LEFT JOIN FETCH r.members사용 시OneToMany관계로 인해 카디널 곱 발생.예약 1건에 멤버 N명이면 SQL 결과 행이 N배로 증가하여 메모리 낭비 및 페이징 불가 문제.
해결 방안
쿼리를 2개로 분리: