Merged
Conversation
기존 쿼리에서 LOWER() 함수를 추가, index 추가로 검색 성능 최적화
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.
📝 요약(Summary)
친구 검색 시 대소문자를 구분하지 않도록 개선했습니다. 기존 쿼리에서 LOWER() 함수를 사용하여 조회하도록 변경하였습니다. 그리고 LOWER(nickname)에 대한 Function-based Index를 추가하여 검색 성능을 향상시켰습니다.
🔗 Related Issue
💬 공유사항
정렬은 원본 nickname 기준(ASCII 순서)으로 됩니다. 커서 기반 페이지네이션에서 누락을 방지하고자 이렇게 설계하였습니다.
예시)
사용자가 "joh" 입력 중...
검색 결과:
[접두사 일치 그룹]
사용자가 "john" 입력 완료
검색 결과:
[정확히 일치 그룹]
[접두사 일치 그룹]
4. JOHNNY
5. Johnny
6. johnny
✅ PR Checklist
PR이 다음 요구 사항을 충족하는지 확인하세요.