Skip to content
Sahithyan's S3
1
Sahithyan's S3 — Database Systems

Transaction

A logical unit of work that performs one or more database operations (reads/writes). Ensures ACID properties. Consistency might be temporarily lost while a transaction is running. Multiple transactions can run in parallel.

StateDescriptionPossible Next States
ActiveInitial state. Executing.Partially Committed, Failed
Partially CommittedFinal operation done. Waiting to commit.Failed, Committed
FailedError occurred. Cannot proceed normally.Aborted
AbortedRolled back; database restored to previous state.Active (if retrying)
CommittedCompleted successfully.-

If the failure is temporary, can retry.