neo4j / neo4j-python-driver

Neo4j Bolt driver for Python
https://neo4j.com/docs/api/python-driver/current/
Other
883 stars 187 forks source link

[4.4] Invalidate writers per database #1039

Closed robsdedude closed 3 months ago

robsdedude commented 3 months ago

This should improve the performance of the driver in multi database use-cases. The driver now only removes a server as a writer for a single database (before for all databases) if that server returns an error that notifies the driver that the server is no longer a writer (Neo.ClientError.Cluster.NotALeader or Neo.ClientError.General.ForbiddenOnReadOnlyDatabase).

Backport of: https://github.com/neo4j/neo4j-python-driver/pull/959