Transaction

1 min read Updated Tue Apr 28 2026 07:56:31 GMT+0000 (Coordinated Universal Time)

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.

Transaction States

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.