-
Notifications
You must be signed in to change notification settings - Fork 2
Sisc1 52 be 주식 베팅 게임 구현 #100
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
The head ref may contain hidden characters: "SISC1-52-BE-\uC8FC\uC2DD-\uBCA0\uD305-\uAC8C\uC784-\uAD6C\uD604"
Merged
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
0ccb944
[BE] SISC1-52 [FIX] 베팅 게임 버그 수정
otter2023 08c400d
[BE] SISC1-52 [DOCS] Swagger에 API 주석 추가
otter2023 8e01a8f
[BE] SISC1-52 [DOCS] Swagger에 Request 주석 추가
otter2023 cd8d834
Merge branch 'main' into SISC1-52-BE-주식-베팅-게임-구현
otter2023 4feba2c
[BE] SISC1-52 [FIX] 500 에러 수정
otter2023 757fe9c
[BE] SISC1-52 [DOCS] Swagger에 BetRound 주석 추가
otter2023 2c4eca0
[BE] SISC1-52 [FEAT] 테스트를 위한 스케쥴러의 api화
otter2023 63d3f91
plz
otter2023 4afd66b
Merge branch 'main' into SISC1-52-BE-주식-베팅-게임-구현
otter2023 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
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
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.
성능 문제: 전체 데이터 로드를 피하세요.
현재 구현은
findAll()로 모든 PriceData를 메모리에 로드한 후 distinct ticker를 추출합니다. PriceData 테이블에 수천~수만 개의 레코드가 있는 경우 심각한 성능 저하가 발생할 수 있습니다.다음과 같이 개선하는 것을 권장합니다:
방법 1: Repository에 distinct ticker 조회 메서드 추가 (권장)
PriceDataRepository에 메서드 추가:
그 후 서비스 코드 수정:
방법 2: Native Query 사용
🤖 Prompt for AI Agents