TRANSACTION in Database Management System
Published in
2 min readNov 23, 2019
What is transaction :-
- Transactions we called all those transactions which are done in a process.
- We can say that , A transaction is performed by a one user to use the content of any database.
- It is a group of tasks , that the user will be perform .
Let’s take an Example :-
Suppose a teacher find the record of a student from school database .
It is also called as a transaction.
TRANSACTION PROPERTY :-
There are four properties of transaction. They are used to maintain the in sequence way , before and after the transaction ends.
Properties :-
1. Atomicity
2. Consistency
3. Isolation / Independence
4. Durability / Permanence :-
1. ATOMICITY :-
- We can say Atomicity is that, all the operations of the transaction take place at once . If not, it will be aborted the transaction .
- There is no way that the transaction will perform partially or midway .
2. CONSISTENCY :-
- We can say Consistency is that, all the transaction follow in consistent state .
- The data will maintain in this way that database or transaction are consistent before transaction and after transaction
3. ISOLATION / INDEPENDENCE :-
- All the transactions should be in isolated condition or state .
- Isolation guarantees that the progress of other transactions do not affect the outcome of that transactions .
- When we use X data in the transaction A to perform the transaction A, then that X data can’t accessed by any other transactions, until transaction A releases that data .
4. DURABILITY / PERMANENCE :-
- When we change in the transaction it may permanently change in that transaction .
- Any system failure occurs , the change made in any data will never lost , due to Durability property of transaction .
- When the data is completed then they reaches the consistent state , and the data in the consistent state will not lost , even when a system failure .