Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ADR 031: Homedb Cache (Bolt 5.8) #1115

Draft
wants to merge 13 commits into
base: 5.0
Choose a base branch
from

Conversation

robsdedude
Copy link
Member

@robsdedude robsdedude commented Nov 8, 2024

Introducing support for Bolt 5.8, which (among other things) makes the server echo back the resolved home/default db on starting a transaction as well as a connection hint whether server-side routing (SSR) is enabled. If so, the echoed db can be used together with an optimistic home db cache to guess a client-side route (optimistic routing - falling back to SSR on wrong guesses). This feature saves a round-trip under the following conditions:

  • Server has SSR enabled
  • Sever supports Bolt 5.8
  • A fresh (yet unused) session without an explicitly configured target database starts its first transaction (auto-commit or explicit)

Depends on (re-run CI after merge):

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