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.
🔍 개요
🚀 주요 변경 내용
GET /studytimes/rakings/me엔드포인트를 추가했습니다.한 번에 동아리, 학번, 개인 랭킹을 조회하며 여러 동아리를 가입할 수 있기에 동아리 랭킹은 리스트로 반환됩니다.
내 랭킹은 개인 별 랭킹에서 이름을 따로 마스킹 처리하지 않았습니다.
학번은 동아리와 개인과 다르게 테이블이 따로 존재하지 않기에 분기 처리하여 이름으로 조회하도록 했습니다.
💬 참고 사항
DB 오버헤드를 고려하여 랭킹 테이블을 분리를 하려다보니 비즈니스 로직도 너무 복잡해지고 더러워지네요....;;
코드 작성도 비용이라는 점을 간과한 저의 불찰입니다.....ㅠㅠ
이후에 대량의 더미 데이터로 성능 체크를 해본 뒤 시간 남을때마다 순수 쿼리로만 돌아갈 수 있도록 리팩토링과 DB 마이그레이션 하겠습니닷
✅ Checklist (완료 조건)