perf: nearby 반경 5000m -> 1000m 축소 (Seq Scan 방지)#126
Merged
Conversation
서울 중심 5km 반경에 전체 매장 56%가 집중되어 플래너가 GIST 인덱스 대신 Seq Scan을 선택. 반경 축소로 매칭 행 수를 줄여 인덱스 활용 유도. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Contributor
There was a problem hiding this comment.
Code Review
This pull request reduces the search radius for nearby stores from 5000.0 to 1000.0 meters in StoreService.java. The feedback suggests defining this hardcoded radius value as a class constant to improve code readability and maintainability.
Important
The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.
| int limitedSize = Math.min(size, 100); | ||
| return storeRepository.findNearbyWithGist( | ||
| latitude, longitude, 5000.0, | ||
| latitude, longitude, 1000.0, |
Contributor
There was a problem hiding this comment.
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.
서울 중심 5km 반경에 전체 매장 56%가 집중되어 플래너가 GIST 인덱스 대신
Seq Scan을 선택. 반경 축소로 매칭 행 수를 줄여 인덱스 활용 유도.
📢 기능 설명
필요시 실행결과 스크린샷 첨부
연결된 issue
연결된 issue를 자동을 닫기 위해 아래 {이슈넘버}를 입력해주세요.
close #{이슈넘버}
✅ 체크리스트