search_query 정렬 시 페이지 간 중복 id 수정#512
Merged
Merged
Conversation
ars-ki-00
approved these changes
May 9, 2026
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
COUNT_DESC(강의평 많은 순),RATING_DESC(평점 높은 순) 정렬 시evInfo.count/evInfo.avgRating단일 키만으로 정렬되어, 동일 값 lecture들이 페이지 경계에서 임의 순서로 섞여 인접 페이지 간 같은 id가 중복 노출되던 문제 수정Lecture::id.asc()를 secondary sort로 추가하여 결정적(deterministic) 정렬 보장 (_id는 unique + indexed라 비용 거의 없음)Test plan
./gradlew :core:compileKotlin통과 (확인 완료)POST /v1/search_query를 sortCriteria=강의평 많은 순으로 page=0..N 순회 → 누적 id 집합에 중복 0 확인평점 높은 순도 중복 0 확인기본값정렬은 동작/순서 변화 없음 sanity check🤖 Generated with Claude Code