Skip to content

Send BEGIN eagerly on transaction begin #586

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

Merged
merged 3 commits into from
Sep 20, 2021
Merged

Conversation

robsdedude
Copy link
Member

@robsdedude robsdedude commented Sep 15, 2021

By sending BEGIN right after starting a transaction instead of waiting for
a query to pipeline BEGIN with RUN, the driver will notice a broken
connection, lack of permission, and similar problems faster. Meaning potentially
expensive computations in the client code can be avoided if they wouldn't be
able to be persisted in the DB anyway. However, this means an extra rtt.

Waiting for neo4j-drivers/testkit#251 to me merged first (re-run TestKit pipeline afterwards)

@robsdedude robsdedude force-pushed the eager-begin branch 2 times, most recently from 0655ce1 to 5a879ce Compare September 17, 2021 08:03
@robsdedude robsdedude merged commit 1ae4a6b into neo4j:4.4 Sep 20, 2021
@robsdedude robsdedude deleted the eager-begin branch September 20, 2021 07:00
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