[REFACT] 월간 운동 지도 조회 공간 검색 최적화#605
Merged
Merged
Conversation
kanghana1
approved these changes
Jun 3, 2026
Contributor
kanghana1
left a comment
There was a problem hiding this comment.
고생하셨습니다! 공간인덱스 많이 배우고가요
1. Box 기준으로 필터링 2. 실제 radius 기준으로 재검색
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
❤️ 기능 설명
월간 운동 지도 조회를 MySQL Spatial 기반 검색으로 최적화했습니다.
exercise_addr.locationgeneratedPOINT컬럼과 공간 인덱스 추가ST_Distance_Sphere실제 반경 필터로 변경Exercise엔티티는 JPQL fetch 조회하는 2단계 구조로 분리radiusKm를Double로 유지해 소수 반경 검색 지원Query객체로 분리possible_keys기반 smoke 테스트로 완화테스트 결과 스크린샷 대신 아래 명령 실행 결과로 대체합니다.
연결된 issue
close #598
🩷 Approve 하기 전 확인해주세요!
exercise_addr.locationgenerated column과 spatial index가 추가됩니다.✅ 체크리스트