Repository navigation
Phase 6: age 조건 페이지 조회와 age 보조 인덱스 - #5
Merged
Merged
Conversation
- GET /users?age=N: 같은 age만 id 순서로 커서 페이지 조회, has_more는 조건에 맞는 limit+1번째 행 - 선형 탐색(--age-path scan)을 기준 구현으로 유지, age 보조 인덱스(age별 id 배열, 기본 경로) 추가 - 인덱스 유지: INSERT 시 배열 끝에 추가, UPDATE·DELETE 재작성과 시작 시 재구성 - 응답 헤더 X-Rows-Examined·X-Rows-Examined-After-Last·X-Age-Index-Keys·X-Access-Path·X-Engine-Us - 대표 실험 도구 tools/age_bench.py(make age-bench), 문서 docs/phase6 - 테스트: 두 경로 동등성, 인덱스·파일 일치, 불일치 감지, 동시 쓰기 중 순회 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
요약
GET /users?age=N&after_id=&limit=: 같은 age만 id 순서로 커서 페이지 조회--age-path scan)을 기준 구현으로 유지하고, age 보조 인덱스(age별 id 배열)를 기본 경로로 추가X-Rows-Examined,X-Rows-Examined-After-Last,X-Age-Index-Keys,X-Access-Path,X-Engine-Ustools/age_bench.py(make age-bench), 문서docs/phase6대표 실험 (100만 행 중 25세 0.1%, 첫 페이지 100명, 방식별 60회)
두 방식의 응답 본문은 바이트 단위로 같음. 쓰기 시간·메모리는 측정하지 않음.
검증