Transaction
Pronunciationtran-ZAK-shun
Definition
A group of database changes that either all succeed or all fail together, so data is never left half-updated.
Where you hear it
Payments, transfers, and any multi-step update.
Examples
Wrap both updates in a transaction so money is never lost.
The transaction was rolled back after the error.
The transfer runs in one transaction, so a failed credit undoes the debit.
Common mistake
Keeping a transaction open while calling an external API. It locks rows and slows everyone down.
Don't confuse with
A transaction ensures data integrity through ACID properties for a specific sequence of operations, whereas a batch processes a large volume of data records in bulk without necessarily requiring real-time consistency.
Say it at work
- In a meeting or chat
Let's make sure this entire registration flow runs inside a single transaction so we don't end up with orphan records.
- In an email or ticket
Please ensure that the database transaction is properly committed or rolled back at the end of the request lifecycle.