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

feat: concurrent transactions on emulator #1578

Merged
merged 1 commit into from
Apr 21, 2024

Conversation

olavloite
Copy link
Collaborator

The JDBC driver now supports running multiple concurrent transactions on the emulator using a single thread. The emulator still only supports one read/write transaction per database at any time, but the JDBC driver works around this by manually setting a Savepoint after each statement, and using that Savepoint to automatically resume the transaction when it has been aborted by the emulator.

The JDBC driver now supports running multiple concurrent transactions on
the emulator using a single thread. The emulator still only supports one
read/write transaction per database at any time, but the JDBC driver works
around this by manually setting a Savepoint after each statement, and
using that Savepoint to automatically resume the transaction when it
has been aborted by the emulator.
@olavloite olavloite requested review from a team as code owners April 21, 2024 05:40
@product-auto-label product-auto-label bot added size: m Pull request size is medium. api: spanner Issues related to the googleapis/java-spanner-jdbc API. labels Apr 21, 2024
@olavloite olavloite merged commit 0234fb3 into main Apr 21, 2024
26 checks passed
@olavloite olavloite deleted the emulator-concurrent-transactions branch April 21, 2024 07:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: spanner Issues related to the googleapis/java-spanner-jdbc API. size: m Pull request size is medium.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant