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

Introduce home database resolution cache #1600

Merged
merged 1 commit into from
Jan 27, 2025

Conversation

injectives
Copy link
Contributor

@injectives injectives commented Jan 1, 2025

This update adds support for Bolt protocol 5.8 and introduces home database resolution cache that works with Bolt protocol 5.8+ when routing scheme is used. The cache is maintained by the driver internally and is not exposed in the API, its purpose is to reduce the number of Bolt exchanges when home database resolution is needed.

@injectives injectives force-pushed the feature/home-database branch 2 times, most recently from 9654cdb to 543e2d4 Compare January 9, 2025 18:17
@injectives injectives force-pushed the feature/home-database branch from 10a5e09 to e6e878d Compare January 13, 2025 11:50
@injectives injectives changed the title Introduce home database resolution optimisation Introduce home database resolution cache Jan 13, 2025
@injectives injectives force-pushed the feature/home-database branch 2 times, most recently from 813583d to 8471f76 Compare January 13, 2025 18:19
This update adds support for Bolt protocol 5.8 and introduces home database resolution cache that works with Bolt protocol 5.8+ when routing scheme is used. The cache is maintained by the driver internally and is not exposed in the API, its purpose is to reduce the number of Bolt exchanges when home database resolution is needed.
@injectives injectives force-pushed the feature/home-database branch from 8471f76 to 6516dbc Compare January 14, 2025 14:40
@@ -208,4 +208,12 @@ public boolean isRoutingTableAged() {
public RoutingTable routingTable() {
return routingTable;
}

@Override
public synchronized boolean staleRoutingTable(AccessMode mode) {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would isRoutingTableStale be more fitting?

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Discussed

Copy link

@StephenCathcart StephenCathcart left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good job! 🎉

@injectives injectives merged commit b70dc41 into neo4j:5.0 Jan 27, 2025
19 of 20 checks passed
@injectives injectives deleted the feature/home-database branch January 27, 2025 10:32
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.

None yet

2 participants