-
Notifications
You must be signed in to change notification settings - Fork 1
[main ← Feature/top3] 좋아요 수 기준 랭킹 Top3 부스를 반환하는 API 작성 #115
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 2 commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
4e9c55c
feat: 좋아요 수 기준 랭킹 Top3 부스를 반환하는 API 작성
milk-stone a2550d1
docs: 좋아요 수 기준 랭킹 Top3 부스를 반환하는 API에 대한 문서 작성
milk-stone 829df29
feat: TOP 3 좋아요 부스 랭킹 API 신설 및 Redis 조회 최적화
milk-stone a67e02a
docs: 누락된 swagger 문서 작성 및 override 어노테이션 추가
milk-stone d4be076
Merge branch 'main' into feature/top3
milk-stone a945f20
feat: TOP 3 좋아요 부스 랭킹 API, Redis 조회 최적화
milk-stone fa378af
fix: git conflict 해결
milk-stone File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 7 additions & 0 deletions
7
src/main/java/kr/co/knuserver/presentation/booth/dto/BoothTop3ResponseDto.java
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| package kr.co.knuserver.presentation.booth.dto; | ||
|
|
||
| public record BoothTop3ResponseDto( | ||
| Long boothId, | ||
| String boothName, | ||
| long likeCount | ||
| ) {} |
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Top3 API가 전체 랭킹/전체 부스를 읽어 확장 시 병목이 됩니다.
Line [101]에서 전체 랭킹을 가져오고, Line [111]에서 전체 ID를 DB 조회한 뒤 마지막에 3개만 자르고 있습니다. Top3 전용 API라서 요청당 비용이 불필요하게 큽니다.
⚡ 제안 수정안 (Top N만 조회하도록 경로 축소)
🤖 Prompt for AI Agents