-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: automatic fallback to Partitioned DML
Adds a third option for the `spanner.autocommit_dml_mode`. This third option first tries to execute a DML statement using a standard, atomic transaction. If that fails because the transaction mutation limit was exceeded, the statement is retried using a Partitioned DML transaction. Usage: ``` set spanner.autocommit_dml_mode='TRANSACTIONAL_WITH_FALLBACK_TO_PARTITIONED_NON_ATOMIC'; -- The following statement is executed as an atomic DML statement first. -- If that fails due to exceeding the Spanner mutation limit, then this statement -- will automatically be retried using Partitioned DML. update large_table set active=true where active is null; ```
- Loading branch information
Showing
2 changed files
with
49 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters