[feat] 이벤트 유저를 다양한 조건으로 검색할 수 있게 개선(#135) #139
Merged
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.
#️⃣ 연관 이슈
📝 작업 내용
이벤트 유저를 frameId, 전화번호를 기준으로도 검색할 수 있도록 구현했습니다. 초기에는 JPA Specification을 기반으로 기능을 구현했으나, join을 수행하더라도 연관 객체 정보를 함께 가져오지 않아 N+1 문제를 겪었고, fetch의 경우 일관성 없이 동작하는 문제가 있었습니다. 이로 인해 JPA Specification만으로는 한계가 있다고 생각하여 queryDSL을 도입, 동일 로직을 구현하여 문제를 해결했습니다.
https://github.com/softeerbootcamp4th/Team6-AwesomeOrange-BE/wiki/%ED%8A%B8%EB%9F%AC%EB%B8%94%EC%8A%88%ED%8C%85#jpa-specification%EC%9D%98-%EB%8B%A8%EC%A0%90%EA%B3%BC-querydsl%EC%9D%98-%EB%8F%84%EC%9E%85