The Wayback Machine - https://web.archive.org/web/20241011193854/https://www.geeksforgeeks.org/introduction-to-transaction-processing/
Open In App

Introduction to Transaction Processing

Last Updated : 05 Jan, 2021
Summarize
Comments
Improve
Suggest changes
Like Article
Like
Save
Share
Report
News Follow

Single user system :
In this at-most, only one user at a time can use the system.

Multi-user system :
In the same, many users can access the system concurrently.

Concurrency can be provided through :

  1. Interleaved Processing –
    In this, the concurrent execution of processes is interleaved in a single CPU. The transactions are interleaved, meaning the second transaction is started before the primary one could finish. And execution can switch between the transactions. It can also switch between multiple transactions. This causes inconsistency in the system.
  2. Parallel Processing –
    It is defined as the processing in which a large task into various smaller tasks and smaller task also executes concurrently on several nodes. In this, the processes are concurrently executed in multiple CPUs.

Transaction :
It is a logical unit of database processing that includes one or more access operations. (read-retrieval, write-insert or update). It is a unit of program execution that accesses and if required updates various data items.
A transaction is a set of operations that can either be embedded within an application program or can be specified interactively via a high-quality language such as SQL.

Example –
Consider a transaction that involves transferring $1700 from a customer’s savings account to a customer’s checking account. This transaction involves two separate operations: debiting the savings account by $1700 and crediting the checking account by $1700. If one operation succeeds but the other doesn’t, the books of the bank will not balance.

Transaction boundaries :
Begin and end boundaries. In this, you can say an application program may have several transactions and transactions separated by the beginning and end of the transaction in an application program.

Granularity of data :

  • The size of data item is called its granularity.
  • A data item can be an individual field (attribute), value of some record, a record, or a whole disk block.
  • Concepts are independent of granularity

Advantages :

  • Batch processing or real-time processing available.
  • Reduction in processing time, lead time and order cycle time.
  • Reduction in inventory, personnel and ordering costs.
  • Increase in productivity andcustomer satisfaction

Disadvantages :

  • High setup costs.
  • Lack of standard formats.
  • Hardware and software incompatibility.


Similar Reads

Online Transaction Processing (OLTP) and Online Analytic Processing (OLAP)
Online Transaction Processing (OLTP): OLTP databases are meant to be used to do many small transactions, and usually serve as a "single source of storage". An example of OLTP system is online movie ticket booking website. Suppose two persons at the same time wants to book the same seat for the same movie for same movie timing then in this case whoe
5 min read
On Line Transaction Processing (OLTP) System in DBMS
On-Line Transaction Processing (OLTP) System refers to the system that manage transaction oriented applications. These systems are designed to support on-line transaction and process query quickly on the Internet. For example: POS (point of sale) system of any supermarket is a OLTP System. Every industry in today's world use OLTP system to record t
3 min read
Difference between Data Warehousing and Online transaction processing (OLTP)
Information is crucial to today’s organizations and acts as the base for their decisions, work, and planning. Two minor systems that are useful in managing this data include Data Warehousing (DWH) as well as Online Transaction Processing (OLTP). Though both systems are essential, they serve distinct purposes: Essentially, DWH deals with data and de
3 min read
Two Phase Commit Protocol (Distributed Transaction Management)
Consider we are given with a set of grocery stores where the head of all store wants to query about the available sanitizers inventory at all stores in order to move inventory store to store to make balance over the quantity of sanitizers inventory at all stores. The task is performed by a single transaction T that's component Tn at the nth store a
5 min read
Recovery from failures in Two Phase Commit Protocol (Distributed Transaction)
Prerequisite: Two-Phase Commit ProtocolIn the 2-phase commit protocol, the sites contributing to a distributed transaction and the coordinator that is managing the whole transaction globally may fail or crash, and this could lead to the whole transaction failure. Since unanimity is required in order to commit a distributed transaction successfully
4 min read
Transaction Control in DBMS
The transaction is a single logical unit that accesses and modifies the contents of the database. Transactions access data using read and write operations. Transaction is a single operation of processing that can have many operations. Transaction is needed when more than one user wants to access same database. Transaction has ACID properties. ACID
5 min read
How do Database Systems Handle Transaction Failures?
Answer: Database systems handle transaction failures through two mechanisms, rollback and logging.Database systems handle transaction failures by leveraging the ACID (Atomicity, Consistency, Isolation, Durability) properties to ensure data integrity and system reliability. When a transaction fails, the system employs two critical mechanisms: rollba
1 min read
Transaction in DBMS
In Database Management Systems (DBMS), a transaction is a fundamental concept representing a set of logically related operations executed as a single unit. Transactions are essential for handling user requests to access and modify database contents, ensuring the database remains consistent and reliable despite various operations and potential inter
10 min read
Transaction Isolation Levels in DBMS
The levels of transaction isolation in DBMS determine how the concurrently running transactions behave and, therefore, ensure data consistency with performance being even. There are four basic levels- Read Uncommitted, Read Committed, Repeatable Read, and Serializable that provide different degrees of data protection from providing fast access with
7 min read
Transaction Management
Transactions are a set of operations used to perform a logical set of work. It is the bundle of all the instructions of a logical operation. A transaction usually means that the data in the database has changed. One of the major uses of DBMS is to protect the user's data from system failures. It is done by ensuring that all the data is restored to
9 min read
Transaction States in DBMS
Transaction in DBMS is a set of logically related operations executed as a single unit. These logic are followed to perform modification on data while maintaining integrity and consistency. Transactions are performed in a way that concurrent actions from different users don't malfunction the database. Transfer of money from one account to another i
4 min read
File Processing System (FPS)
In earlier days, data was stored manually, using pen and paper but after computer was discovered, the same task could be done by using files. A computer File is a resource which uniquely records data, in a storage device in a computer. There are various formats in which data can be stored. e.g. Text files can be stored in .txt format while pictures
3 min read
Query Processing in Distributed DBMS
Query processing in a distributed database management system requires the transmission of data between the computers in a network. A distribution strategy for a query is the ordering of data transmissions and local data processing in a database system. Generally, a query in Distributed DBMS requires data from multiple sites, and this need for data
5 min read
Pipeline in Query Processing in DBMS
Database system processing in a satisfactory manner encompasses providing fast responses to data retrieval and manipulation tasks, with two of the keywords being performance and responsiveness. A concept that acts as the foundational element in improving batch processing performance is called "pipeline." In this article, the network of rungs or pip
5 min read
Selection Operation in Query Processing in DBMS
Regarding query processing, the term "selection" operation denotes fetching particular rows from a database table that fulfill some given condition or conditions. Why is this important? Because databases manage vast volumes of information, users must be able to narrow down their searches based on different parameters. The next few lines explain how
9 min read
Query Processing in SQL
Query Processing includes translations of high-level Queries into low-level expressions that can be used at the physical level of the file system, query optimization, and actual execution of the query to get the actual result.  High-level queries are converted into low-level expressions during query processing. It is a methodical procedure that can
4 min read
PL/SQL Introduction
PL/SQL is a block structured language that enables developers to combine the power of SQL with procedural statements.All the statements of a block are passed to oracle engine all at once which increases processing speed and decreases the traffic. Basics of PL/SQL•PL/SQL stands for Procedural Language extensions to the Structured Query Language (SQL
6 min read
Introduction to TimeStamp and Deadlock Prevention Schemes in DBMS
Deadlock occurs when each transaction T in a schedule of two or more transactions waiting for some item locked by some other transaction T' in the set. Thus, both end up in a deadlock situation, waiting for the other to release the lock on the item. Deadlocks are a common problem and we have introduced the problem while solving the Concurrency Cont
7 min read
Introduction to Large Objects (LOBs)
Large Objects(LOBs) are a collection of datatypes which is designed to hold a large amount of data. A LOB is able to hold up to maximum size ranging from 8 terabytes to 128 terabytes, depending upon how your database is configured. Storing data into LOBs helps you to manipulate & access data efficiently in your own application. Why use large ob
2 min read
Introduction of MS SQL Server
Data is a collection of facts and figures and we have humungous data available to the users via the internet and other sources. To manipulate the data, Structured Query Language (SQL) in short has been introduced years ago. There are different versions of SQL available in the market provided by different organizations. In this article, we shall see
2 min read
Introduction of MariaDB
MariaDB is one of the most popular open-source relational database management system and could be used as a great replacement of MySQL. It is developed by original developers of MySQL. MariaDB can also stores data in various tables. It is also part of most cloud offerings and default in most Linux distributions. To establish the relationship betwee
2 min read
Introduction to Apache CouchDB
Apache CouchDB was developed by Apache Software Foundation and initially released in 2005. CouchDB is written in Erlang. It is an open-source database that uses various different formats and protocols to store, transfer, and process its data. It uses JSON to store data, JavaScript as its query language using MapReduce, and HTTP for an API. Document
3 min read
Introduction to Couchbase
Couchbase Server is an open-source, distributed, multi-model NoSQL, JSON document database that is enhanced for interactive applications. It is also known as Membase. It was developed by Couchbase, Inc. and initially released in August 2010. It is written using C++, Erlang, C, Go languages. Its server is designed to provide us with easy-to-scale ke
3 min read
Introduction to PostgreSQL PL/pgSQL
In this, we will discuss the overview of PostgreSQL PL/pgSQL and will also cover the CRUD(CREATE, READ, UPDATE, DELETE) operations with the help of the example of each operation and finally will discuss the advantages and disadvantages of PostgreSQL PL/pgSQL. Let's discuss it one by one.PostgreSQL :It is a powerful, open-source object-relational da
4 min read
Introduction of Standby Database
Have you ever thought of scenario where primary database generated is corrupted and what is going to happen in this case? Since database is corrupted, how do we get values and update database by inserting new data? In order to face this situation and maintain the smooth functioning of system, there is concept of standby database. A standby database
2 min read
Introduction of Shadow Paging
Shadow Paging is recovery technique that is used to recover database. In this recovery technique, database is considered as made up of fixed size of logical units of storage which are referred as pages. pages are mapped into physical blocks of storage, with help of the page table which allow one entry for each logical page of database. This method
5 min read
Introduction of Enterprise Database
Today is world that is full of data. We have ample number of resources which generate data on daily basis and all these data are stored in very secure manner in databases. All data is linked to each other in Database. With help of database, it becomes easy to, insert, use and remove data as per need. For example, If we consider blog website data st
4 min read
Introduction of Parallel Database
In this article, we will discuss the overview of Parallel Databases and then will emphasize their needs and advantages, and then finally, will cover the performance measurement factor-like Speedup and Scale-up with examples. Let's discuss it one by one. Parallel Databases :Nowadays organizations need to handle a huge amount of data with a high tran
3 min read
Introduction to Informatica
Informatica is an IT firm established by Mr Dillon in California in the year 1995-96. People often refer to Informatica as software, but there are some technical tools developed by Informatica which they intend to mean. Informatica offers various data products like ETL, data migration, data integration, data virtualization, data masking, data repli
3 min read
Introduction of Shared Memory Segment
Introduction of Shared Memory Segment :The quickest kind of IPC accessible is shared memory. There is no kernel participation in transmitting data between processes after the memory is mapped into the address space of the processes that are sharing the memory region. However, some type of synchronization between the processes that save and retrieve
6 min read
Article Tags :