Skip to content

feat(fetch): --recent 모드에서 버전 비교로 불필요한 API 호출 생략#707

Merged
jk-kim0 merged 1 commit intomainfrom
feat/recent-version-skip
Feb 13, 2026
Merged

feat(fetch): --recent 모드에서 버전 비교로 불필요한 API 호출 생략#707
jk-kim0 merged 1 commit intomainfrom
feat/recent-version-skip

Conversation

@jk-kim0
Copy link
Copy Markdown
Contributor

@jk-kim0 jk-kim0 commented Feb 13, 2026

요약

  • CQL 검색에 &expand=version 추가하여 각 페이지의 version.number를 함께 조회
  • 로컬 page.v2.yamlversion.number와 비교하여 동일하면 process_page_complete() 생략
  • 페이지당 API 4회 호출 (V1, V2, children, attachments) 을 0회로 절감

변경 파일

파일 변경 내용
bin/fetch/api_client.py CQL 검색에 expand=version 추가, 반환 타입에 version_number 포함
bin/fetch/processor.py _is_page_current() 메서드 추가, 버전 일치 시 skip

테스트 결과

WARNING - Downloading 100 recently modified pages
WARNING - Skipped 100 pages (already up-to-date)
  • 100개 페이지 중 100개 skip (로컬 데이터가 최신)
  • 변경된 페이지 1개 감지 시 해당 페이지만 API 호출 확인 (needs update: local version 13 != API version 14)

🤖 Generated with Claude Code

CQL 검색에 expand=version 을 추가하여 각 페이지의 version.number 를
함께 조회하고, 로컬 page.v2.yaml 의 version.number 와 비교하여
동일하면 process_page_complete() (API 4회/페이지) 를 생략한다.

검증 결과: 100개 페이지 중 100개 skip, API 호출 400회 → 0회 절감.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@vercel
Copy link
Copy Markdown

vercel Bot commented Feb 13, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
querypie-docs Canceled Canceled Comment Feb 13, 2026 10:45am

Request Review

@jk-kim0 jk-kim0 self-assigned this Feb 13, 2026
@jk-kim0 jk-kim0 merged commit 11dfadc into main Feb 13, 2026
5 of 7 checks passed
@jk-kim0 jk-kim0 deleted the feat/recent-version-skip branch February 13, 2026 10:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant