Search: a first build reads its notes side by side #316

Closed
kayg wants to merge 0 commits from issue/44-search-build-2 into dev
Owner

Part of #44. Independent of the other #44 PRs.

The search index's first build fetched each note one after another (a file read each). The items of a batch (64) are now fetched side by side and stored in the order asked for (row ids still follow it).

Perf VM, 100k notes, first build from scratch (3 runs each): dev 136-142 s -> 84-88 s. RSS right after the build is higher (64 notes in flight); the memory PR hands it back afterwards.

🤖 Generated with Claude Code

Part of #44. Independent of the other #44 PRs. The search index's first build fetched each note one after another (a file read each). The items of a batch (64) are now fetched side by side and stored in the order asked for (row ids still follow it). Perf VM, 100k notes, first build from scratch (3 runs each): dev 136-142 s -> **84-88 s**. RSS right after the build is higher (64 notes in flight); the memory PR hands it back afterwards. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Search: a first build reads its notes side by side
Some checks failed
CI / server (pull_request) Successful in 24s
CI / rust (pull_request) Successful in 2m1s
CI / web (pull_request) Failing after 3m17s
6d7f7ea2d0
The search index's first build fetched each note one after another, a
file read each: at 100,000 notes it took two and a half minutes on the
perf VM (no disk cache). The items of a batch (64) are now fetched side by
side and stored in the order asked for, so row ids still follow it.

Part of #44

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018Yyy8fQGxPLkLa8v8NXz7T
Author
Owner

Merged into dev via train j (#391).

Merged into dev via train j (#391).
kayg closed this pull request 2026-10-15 02:22:54 +00:00
Some checks failed
CI / server (pull_request) Successful in 24s
CI / rust (pull_request) Successful in 2m1s
CI / web (pull_request) Failing after 3m17s

Pull request closed

Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
kayg/calternal!316
No description provided.