Skip to content

feat: concurrent transactions on emulator#1578

Merged
olavloite merged 1 commit intomainfrom
emulator-concurrent-transactions
Apr 21, 2024
Merged

feat: concurrent transactions on emulator#1578
olavloite merged 1 commit intomainfrom
emulator-concurrent-transactions

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 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
@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.

1 participant