GoogleCloudPlatform / GoogleCloudPlatform/pgadapter

Analyze statements could always use separate single-use (read/write) transactions

Open
#477 0 comments 0 reactions 0 assignees View on GitHub
priority: p2 type: feature request
Dominant language
Java
Stars
91
Forks
33
Avg merge
3d 57m
Merged PRs (30d)
58

Description

If the client is executing a `DescribeStatement` message flow to create a prepared statement, it will often use an implicit transaction for it. Queries will in that case use a single-use read-only transaction. Updates however require the transaction type to be a read/write transaction. Read/write transactions are normally never created as single-use transactions, as a message replay would cause the transaction to be replayed. A transaction consisting only of a single `analyzeUpdate` statement is however replay-safe, and could use a single-use read/write transaction.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.