LUW
LUW, short for Logical Unit of Work, is a concept used in database management to describe a sequence of operations that the database management system treats as a single, indivisible transaction. A LUW begins when a transaction is started and ends when it is either committed or rolled back. All the statements and changes performed within a LUW are part of the same logical unit.
Key characteristics of a LUW include atomicity, consistency, isolation, and durability (ACID). Atomicity ensures that either
In practice, LUWs are implemented through the database’s logging and recovery mechanisms. Changes are recorded in
A typical LUW includes multiple SQL statements, such as a fund transfer that debits one account and