Data and analytics · Relational databases and SQL

Transaction commit (database)

In Spanish: Compromiso de transacción
See in the galaxyCopy link
Updated: 12/11/2026Reading: 3 min

Description

A transaction commit is the process by which all changes made in a transaction within a database are made permanent. This concept is fundamental in the field of database management, as it guarantees data integrity and consistency. When a transaction is carried out, which can include multiple operations such as insertions, updates, or deletions, the commit ensures that all these operations are completed successfully before the changes become visible to other users. If any of the operations fail, the system can roll back all changes made during the transaction, ensuring that the database does not end up in an inconsistent state. This mechanism is based on the ACID properties (Atomicity, Consistency, Isolation, and Durability), which are essential for the correct functioning of transactions in databases. Atomicity, in particular, is what allows the transaction commit to work, as it ensures that all transaction operations are executed as a single indivisible unit. In summary, the transaction commit is crucial for maintaining data reliability and integrity in database systems, allowing users to perform complex operations safely and efficiently.

History

The concept of transaction commit originated in the 1970s with the development of database management systems. One of the most important milestones was the introduction of the relational model by Edgar F. Codd in 1970, which laid the foundations for data manipulation in databases. As systems evolved, the need to guarantee data integrity was recognized, leading to the formalization of ACID properties in the 1980s. These properties became a standard for the design of transactional database systems, ensuring that transactions were handled reliably.

Uses

Transaction commit is used in a variety of applications where data integrity is critical. This includes financial systems, where transactions must be accurate and secure, as well as in reservation systems, where resource availability must be guaranteed. It is also applied in e-commerce applications, where transactions must be completed reliably to avoid problems such as double charging or lack of products.

Examples

A practical example of a transaction commit can be observed in a financial system, where a customer transfers money from one account to another. The transaction includes debiting one account and crediting another. If any of these operations fails, the transaction commit ensures that neither of the two is completed, maintaining the integrity of the balances. Another example is in an inventory management system, where when placing an order, the stock must be updated and the sale must be recorded. If the sale recording fails, the stock must not be modified.

Glosarix on your device

Install
×
Enable Notifications Ok No