Open CAFxX opened 8 months ago
@rahul2393 I suspect this was closed by mistake...
@CAFxX reopened
@CAFxX can you please explain how having these methods will be more optimal, auto commit is not yet supported in Cloud Spanner so clients need to explicitly send the commit RPC at the end of request.
Is your feature request related to a problem? Please describe. If a ReadWriteTransaction needs to perform only a batch of one or more update operations, it is wasteful and unneccessary to keep the transaction open for an extra roundtrip.
Describe the solution you'd like
Add the following methods to spanner.Client:
that would behave as a ReadWriteTransaction containing a single call to corresponding method above, so e.g.
would behave as
but allowing Spanner to close the transaction as soon as the update completes, without waiting for the client to explicitly commit.
Describe alternatives you've considered The equivalent code above works today, but is less efficient.