Skip to content

perf(store): a history sync slows as the chat grows, and the fix - #405

Merged
leemour merged 1 commit into
mainfrom
perf/store-sync-growth
Nov 25, 2026
Merged

leemour merged 1 commit into
mainfrom
perf/store-sync-growth

Conversation

@leemour

@leemour leemour commented Nov 25, 2026

Copy link
Copy Markdown
Member

Benchmark and results for tg-cli #917, the reason for cli-core #3333. Synthetic data only.

🤖 Generated with Claude Code

Benchmark and results for tg-cli #917: saving a page of 100 messages took 78 ms at 10k stored messages and
919 ms at 90k, because the thread-child link scanned the whole chat once per message. cli-core #3333 runs it
once per page (32-42 ms up to 60k), and an index in store version 73 keeps it flat.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@leemour
leemour merged commit 5a6e81d into main Nov 25, 2026
1 check passed
@leemour
leemour deleted the perf/store-sync-growth branch November 25, 2026 01:54
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