Google Cloud Spanner Removes Cumulative DML Transaction Limits
Google Cloud Spanner has updated how DML transaction mutation limits are applied, shifting the 80,000 mutation mod cap from the entire transaction to individual DML statements. This enhancement allows applications to handle larger and more complex operational workloads, enabling developers to group DML statements logically without artificially splitting them. The change is compatible with existing client libraries, but larger transactions may increase lock contention and transaction aborts. The individual 80,000 mod limit still applies per DML statement, and other transaction constraints remain.
- →Spanner DML mutation limit now per-statement
- →Enhanced flexibility with operational considerations
Features (1) ›
- Spanner DML mutation limit now per-statement
Google Cloud Spanner has updated its DML transaction handling, shifting the 80,000 mutation mod limit from the entire transaction to individual DML statements. This allows a single transaction to contain any number of DML statements, such as INSERT, UPDATE, or DELETE, provided each individual statement generates fewer than 80,000 mods.
Notes (1) ›
- Enhanced flexibility with operational considerations
This change enables larger, more complex transactions without requiring application code updates, allowing DML statements to be grouped logically based on business requirements. However, larger and longer-running transactions may hold locks for a greater duration, potentially increasing lock contention and transaction aborts. The 80,000 mod limit still applies to individual DML statements and to the entire `Mutation API` commit call.
https://cloud.google.com/blog/products/databases/spanner-removes-dml-mutation-limits/
Related releases
- Google Finance Engineering Automates Spanner Dual-Write Migrations Google Cloud Blog ·
- Spanner Adds PostgreSQL-Dialect ILIKE and NOT ILIKE Operators Google Cloud release notes ·
- Google Cloud expands Data Cloud with real-time analytics, AI, and open tables Google Cloud Blog ·
- Spanner Adds TABLESAMPLE Operator for PostgreSQL-dialect Databases Google Cloud release notes ·
- Cloud Spanner Now Supports Secondary Indexes Based on Scalar Expressions Google Cloud release notes ·
- Google details BigQuery Graph's GA and cross-cloud analytics for AI agents Google Cloud Blog ·