[refactor] 특정 모임 약속 목록 반환 querydsl 변환 #158
Open
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.
Related issue 🛠
Work Description ✏️
기존 약속 조회 로직은 모든 약속을 조회하는 findAllByMeetingId(meetingId)와 사용자가 참여한 약속을 조회하는 findPromiseByUserIdAndMeetingId(userId, meetingId) 두 개의 쿼리를 실행한 후, Java Stream을 활용해 리스트를 필터링하는 방식이었습니다.
이로 인해 불필요한 쿼리가 두 번 실행되는 문제점이 있었습니다.
이를 하나의 쿼리로 수행할 수 있도록 querydsl을 적용했습니다.
Uncompleted Tasks 😅
To Reviewers 📢