Skip to content

feat: optimize sync reconcile performance and progress stages#558

Merged
everpcpc merged 3 commits intomainfrom
codex/sync
Feb 24, 2026
Merged

feat: optimize sync reconcile performance and progress stages#558
everpcpc merged 3 commits intomainfrom
codex/sync

Conversation

@everpcpc
Copy link
Copy Markdown
Owner

Summary

  • Unify sync pagination size to 1000 in sync flows.
  • Split sync progress into stage-level bars and show reconcile as separate stages for series/books.
  • Optimize reconcile with preflight count checks to skip unnecessary full remote ID scans.
  • Improve stale entity cleanup by switching to batched cursor-based deletion in DatabaseOperator.

Testing

  • make format
  • make build-macos

everpcpc and others added 3 commits February 24, 2026 22:07
Unify sync page sizes to 1000 across initializer and sync service paths.

Split initialization progress into stage-level bars and show reconcile as dedicated stages for series and books.

Add reconcile preflight count checks to skip full remote-id scans when local counts are not higher than server counts.

Improve stale deletion in DatabaseOperator with batched cursor scanning and fast full-delete when remote ids are empty.
@everpcpc everpcpc merged commit 5f3fb72 into main Feb 24, 2026
3 checks passed
@everpcpc everpcpc deleted the codex/sync branch February 24, 2026 14:16
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