cancel
Showing results forย 
Search instead forย 
Did you mean:ย 
Community Articles
Dive into a collaborative space where members like YOU can exchange knowledge, tips, and best practices. Join the conversation today and unlock a wealth of collective wisdom to enhance your experience and drive success.
cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

Databricks Multi Table Transactions - All Data or Nothing

balajij8
Contributor III

Databricks introduces multi-table transactions, allowing operations across multiple Delta tables to execute as a single atomic unit. Delta Lake has provided ACID guarantees at the table level, but ensuring atomicity across multiple tables previously required manual coordination leading to errors, partial updates and operational complexity.

With Unity Catalog & catalog managed tables, organizations can group multiple data manipulation operations inside a block and execute it as an All or Nothing single unit bringing excellent capabilities to the Lakehouse. All changes succeed or rolled back

The tables must be Unity Catalog Delta or Iceberg with delta feature catalog Managed supported running on supported clusters.

Below are the two modes:

INTERACTIVE TRANSACTIONS MODE - In interactive mode, a user or application controls commit/rollback based on iterative logic. Apply COMMIT or ROLLBACK based on the validation outcomes.

NON INTERACTIVE ATOMIC MODE - Suited for scheduled jobs

SIGNAL - Use SIGNAL in the blocks to fail the transaction when a defined condition is not met. Signal is useful for doing data validations before committing

Transactions bring strong atomicity to the Lakehouse. Its either all data committed or nothing. No partial updates.

While this is a powerful capability, it introduces additional coordination overhead. Keep transactions short, use only the required tables to maintain performance.

0 REPLIES 0