Skip to content

Add async background preload for bitmap fields#4

Merged
JustMaier merged 1 commit intomainfrom
fix/async-preload
Mar 15, 2026
Merged

Add async background preload for bitmap fields#4
JustMaier merged 1 commit intomainfrom
fix/async-preload

Conversation

@JustMaier
Copy link
Copy Markdown
Contributor

Summary

  • Server spawns background thread after binding listener to pre-load all pending filter/sort bitmap fields
  • Health endpoint responds immediately — no more readiness probe timeouts during lazy-loading
  • Heavy fields (postId 22M values, userId 750K) load in background instead of blocking first query

Test plan

  • Build succeeds
  • Deploy and verify no CrashLoopBackOff
  • Health endpoint responds during preload phase
  • Queries work normally after preload completes

🤖 Generated with Claude Code

Prevents lazy-loading from blocking health checks during startup.
The server binds the listener immediately (health endpoint responsive),
then spawns a background thread that pre-loads all pending filter and
sort fields from BitmapFs. Queries arriving during preload still work
via lazy-loading for their specific fields.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@JustMaier JustMaier merged commit 09388ec into main Mar 15, 2026
1 check failed
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