SlideShare a Scribd company logo
TRANSACTION PROCESSING
AND OPTIMIZATION
Contents
1. DEFINITION .
2. EXAMPLE.
3. PROPERTIES.
4. TYPES.
5. WORKING.
6. LONG DURATION TRANSACTIONS.
7. ADVANTAGES & DISADVANTAGES.
8. LONG DURATION TRANSACTIONS.
DEFINITION
 A transaction can be defined as group of tasks. A
single task is the minimum processing unit which
cannot be divided further.
 It is an action, or series of actions that are being
performed by a single user or application program,
which reads or updates the information.
 A transaction processing system (TPS) is a type of
information system that collects , stores, modifies &
retrieves the data transactions of an enterprise.
Example Of A Transaction In DBMS
 Suppose a bank employee transfers Rs 500 from A's
account to B's account. This very simple and small
transaction involves several low-level tasks.
 A’s Account
Open_Account(A)
Old_Balance = A.balance
New_Balance = Old_Balance – 500
A.balance = New_Balance
Close_Account(A)
Continue…
 B’s Account
Open_Account(B)
Old_Balance = B.balance
New_Balance = Old_Balance + 500
B.balance = New_Balance
Close_Account(B)
PROPERTIES OF TRANSACTIONS
 There are properties that all transactions should
follow & possess.
 The four basic are in combination termed as ACID
properties.
 The ACID has a full form & is as follows:
1. ATOMICITY: Atomicity means that a transaction
is either completed in full or not at all.
Continue…
 For example, if funds are transferred from one
account to another , this only counts as a bone
fide transaction if both the withdrawal & deposit
take place.
 If one account is debited & the other is not
credited, it does not quilify as a transaction.
 TPS systems ensure that transactions take place
in their entirety.
Continue…
2. Consistency: TPS systems exist within a set of operating rules (or integrity
constraints).
 If an integrity constraint states that all transactions in a database must
have a positive value, any transaction with a negative value would be
refused.
3. Isolation: Transactions must appear to take place in isolation.
 For example, when a fund transfer is made b/w two accounts the debiting
of one & the crediting of another must appear to take place simultaneously.
 The funds cannot be credited to an account before they are debited from
another.
Continue…
4. Durability: Once transactions are completed
they cannot be undone.
To ensure that this is the case even if the TPS
suffers failure, a log will be created to document
all completed transactions.
TYPES OF TPS
 There are two types of TPS:
1. Batch Processing
2. Real Time Processing.
3. Batch Processing:
• Batch Processing is where the information is collected
& stored as a batch but not processed immediately.
• Batch processing is useful for enterprises that need to
process large amounts of data using limited resources.
Continue…
 Example: Payment by cheque, Credit card
transactions, etc.
2. Real Time Transaction Processing:
• Real Time Transaction Processing as the
immediate processing of data with the database
updated as the transaction is being carried out.
• Mostly in Online shopping.
Continue…
 Example: Bank ATM & POS terminal( Point of
sale terminal) , both of which have user input
which requires immediate feedback.
Working Of TPS
Advantages & Disadvantages Of TPS
Advantages:
1. Batch or Real Time Processing available.
2. Reduction in processing time, lead time & order cycle
time.
3. Reduction in inventory, personnel & ordering cost.
4. Increase in productivity & customer satisfaction.
Disadvantages:
5. High setup costs.
6. Lack of standard formats.
7. Hardware & software incompatibility.
Long Duration Transactions
Traditional concurrency control techniques do not work
well when user interaction is required:
 Long duration: Design edit sessions are very long
 Exposure of uncommitted data: E.g., partial update to
a design
 Subtasks: support partial rollback
 Recoverability: on crash state should be restored even
for yet-to-be committed data, so user work is not lost.
 Performance: fast response time is essential so user
time is not wasted.
Continue…
 Represent as a nested transaction
 atomic database operations (read/write) at a lowest level.
 If transaction fails, only active short-duration transactions abort.
 Active long-duration transactions resume once any short duration
transactions have recovered.
 The efficient management of long-duration waits, and the
possibility of aborts.
 Need alternatives to waits and aborts; alternative techniques must
ensure correctness without requiring serializability.
THANK YOU

More Related Content

PPTX
Transaction processing ppt
Javed Khan
 
PPTX
Transaction Processing System (TPS).pptx
Osareme Erhomosele
 
PDF
transactionprocessingsystem-161006153930.pdf
DipakRathod48
 
PPTX
Transaction processing system
anjana1994
 
DOC
Characteristics of tps
Future Programming
 
PPTX
Tps revision 2017
greg robertson
 
PPTX
Copy of sec d (2)
Vaibhav Kathuria
 
Transaction processing ppt
Javed Khan
 
Transaction Processing System (TPS).pptx
Osareme Erhomosele
 
transactionprocessingsystem-161006153930.pdf
DipakRathod48
 
Transaction processing system
anjana1994
 
Characteristics of tps
Future Programming
 
Tps revision 2017
greg robertson
 
Copy of sec d (2)
Vaibhav Kathuria
 

Similar to transactionprocessingppt-171212112608.pptx (20)

PPTX
Copy of sec d (2)
Vaibhav Kathuria
 
PPTX
6. Information Systems in the Enterprise CSE-212.pptx
dadiengalfred18
 
PPTX
Tps Presentation
Apex
 
PPT
Transaction Processing System
Mohammed Kashifulla
 
PPTX
Transaction Processing Concept
Nishant Munjal
 
PPTX
TRANSACTION PROCESSING SYSTEM
Ubaid ur Rehman
 
PPT
TPS Characteristics
bmasawan
 
DOCX
Transaction Processing System
Faiza Afzal
 
PPTX
TPS by M.Yameen Shakir
Muhammad Yameen Shakir
 
PPT
HSC Transaction processing systems
greg robertson
 
PPTX
Unit 4 chapter - 8 Transaction processing Concepts (1).pptx
Koteswari Kasireddy
 
PPT
Transaction ps
MR Z
 
PPT
Transaction processing systems
greg robertson
 
PPTX
Information System within the Organization
learnt
 
PPTX
E-Business Information System BBA AVI.pptx
thejaswini40
 
DOC
Early watch report
cecileekove
 
PPTX
Automation of Accounting process & Advantages/Disadvantages of Computerized a...
Muhammed Raashid
 
DOC
Transaction processing systems
Vidhu Arora
 
PPTX
TPS
MR Z
 
PPT
Sim distribution software
Akhil Kumar
 
Copy of sec d (2)
Vaibhav Kathuria
 
6. Information Systems in the Enterprise CSE-212.pptx
dadiengalfred18
 
Tps Presentation
Apex
 
Transaction Processing System
Mohammed Kashifulla
 
Transaction Processing Concept
Nishant Munjal
 
TRANSACTION PROCESSING SYSTEM
Ubaid ur Rehman
 
TPS Characteristics
bmasawan
 
Transaction Processing System
Faiza Afzal
 
TPS by M.Yameen Shakir
Muhammad Yameen Shakir
 
HSC Transaction processing systems
greg robertson
 
Unit 4 chapter - 8 Transaction processing Concepts (1).pptx
Koteswari Kasireddy
 
Transaction ps
MR Z
 
Transaction processing systems
greg robertson
 
Information System within the Organization
learnt
 
E-Business Information System BBA AVI.pptx
thejaswini40
 
Early watch report
cecileekove
 
Automation of Accounting process & Advantages/Disadvantages of Computerized a...
Muhammed Raashid
 
Transaction processing systems
Vidhu Arora
 
TPS
MR Z
 
Sim distribution software
Akhil Kumar
 
Ad

More from sadiariasat10 (20)

PPTX
BrownbagIntrotosqltuning.pptx SQL tunning
sadiariasat10
 
PPTX
BrownbagIntrotosqltuning.pptx SQL tunning
sadiariasat10
 
PPTX
48131.pptx researching methods research methods
sadiariasat10
 
PPTX
6._Research_methods_quan_qual_and_mixed_Paul_B_and_Anne_J.ppt methods x
sadiariasat10
 
PPTX
IS-Overview.pptx information system in business
sadiariasat10
 
PPTX
aggregatefunction-220420051702.pptx aggregate
sadiariasat10
 
PPTX
DDL and DML.pptx ddl vs dml ddl and dml ddl and dml
sadiariasat10
 
PPTX
me-introduction-may-2.pptx intro to basic
sadiariasat10
 
PPTX
module-5-session-1.pptx module 5 session
sadiariasat10
 
PPTX
hrm301-10.pptx HRm HRM HRM HRM HRM HRM HRM HRM
sadiariasat10
 
PPTX
EquityReinforcement.pptx Equity theory in
sadiariasat10
 
PPTX
Normalization.pptx Functional dependence
sadiariasat10
 
PPTX
ch13.pptx Database effefiency and tuning
sadiariasat10
 
PPTX
ieee802-11.pptx wireless lan IEEE 802 11
sadiariasat10
 
PPTX
IEEE-802.11overview.pptx ieee 802 11 overview
sadiariasat10
 
PPTX
lecture22.pptx relational Algebra basics types
sadiariasat10
 
PPTX
signal propagation.pptx basics of signal propagation
sadiariasat10
 
PPTX
lan-141028090025-conversion-gate02.pptx LAN MAN WAN
sadiariasat10
 
PPTX
DOC-20240829-WA0013..pptx introduction to LAN Man and wan
sadiariasat10
 
PPTX
Website-IASBO-SBOA-How-to-prepare-for-an-audit.pptx
sadiariasat10
 
BrownbagIntrotosqltuning.pptx SQL tunning
sadiariasat10
 
BrownbagIntrotosqltuning.pptx SQL tunning
sadiariasat10
 
48131.pptx researching methods research methods
sadiariasat10
 
6._Research_methods_quan_qual_and_mixed_Paul_B_and_Anne_J.ppt methods x
sadiariasat10
 
IS-Overview.pptx information system in business
sadiariasat10
 
aggregatefunction-220420051702.pptx aggregate
sadiariasat10
 
DDL and DML.pptx ddl vs dml ddl and dml ddl and dml
sadiariasat10
 
me-introduction-may-2.pptx intro to basic
sadiariasat10
 
module-5-session-1.pptx module 5 session
sadiariasat10
 
hrm301-10.pptx HRm HRM HRM HRM HRM HRM HRM HRM
sadiariasat10
 
EquityReinforcement.pptx Equity theory in
sadiariasat10
 
Normalization.pptx Functional dependence
sadiariasat10
 
ch13.pptx Database effefiency and tuning
sadiariasat10
 
ieee802-11.pptx wireless lan IEEE 802 11
sadiariasat10
 
IEEE-802.11overview.pptx ieee 802 11 overview
sadiariasat10
 
lecture22.pptx relational Algebra basics types
sadiariasat10
 
signal propagation.pptx basics of signal propagation
sadiariasat10
 
lan-141028090025-conversion-gate02.pptx LAN MAN WAN
sadiariasat10
 
DOC-20240829-WA0013..pptx introduction to LAN Man and wan
sadiariasat10
 
Website-IASBO-SBOA-How-to-prepare-for-an-audit.pptx
sadiariasat10
 
Ad

Recently uploaded (20)

PDF
Withum Webinar - OBBBA: Tax Insights for Food and Consumer Brands
Withum
 
PDF
Keppel Ltd. 1H 2025 Results Presentation Slides
KeppelCorporation
 
PDF
NewBase 29 July 2025 Energy News issue - 1807 by Khaled Al Awadi_compressed.pdf
Khaled Al Awadi
 
PDF
Unveiling the Latest Threat Intelligence Practical Strategies for Strengtheni...
Auxis Consulting & Outsourcing
 
PPTX
What is Letter Writing, Letter Writing Sample
SeemaAgrawal43
 
PPTX
Pakistan’s Leading Manpower Export Agencies for Qatar
Glassrooms Dubai
 
PPTX
Social Media Marketing for Business Growth
vidhi622006
 
PPTX
Financial Management for business management .pptx
Hasibullah Ahmadi
 
PDF
Rodolfo Belcastro su All Around The Worlds Magazine - Febbraio 2025
Rodolfo Belcastro
 
PPTX
Appreciations - July 25.pptxdddddddddddss
anushavnayak
 
PDF
Bihar Idea festival - Pitch deck-your story.pdf
roharamuk
 
PDF
NewBase 26 July 2025 Energy News issue - 1806 by Khaled Al Awadi_compressed.pdf
Khaled Al Awadi
 
PPTX
Foreign-Direct-Investment-Shaping-the-Global-Trade-Landscape 5.pptx
Blackworld7
 
PDF
TEST BANK FOR INTERMEDIATE ACCOUNTING 11TH EDITION BY DAVID SPICELAND MARK NE...
mboogey861
 
DOCX
CCNP Enterprise Core vs. Concentration Exams: What’s the Difference
k10057kumar
 
PPTX
Decoding BPMN: A Clear Guide to Business Process Modeling
RUPAL AGARWAL
 
PPTX
Communications Recruiter Melbourne.pptx
ReithGordon
 
PPTX
Memorandum and articles of association explained.pptx
Keerthana Chinnathambi
 
PDF
From Risk to Opportunity: How Cybersecurity Enhances Your Staffing Business
Withum
 
PDF
SparkLabs Primer on Artificial Intelligence 2025
SparkLabs Group
 
Withum Webinar - OBBBA: Tax Insights for Food and Consumer Brands
Withum
 
Keppel Ltd. 1H 2025 Results Presentation Slides
KeppelCorporation
 
NewBase 29 July 2025 Energy News issue - 1807 by Khaled Al Awadi_compressed.pdf
Khaled Al Awadi
 
Unveiling the Latest Threat Intelligence Practical Strategies for Strengtheni...
Auxis Consulting & Outsourcing
 
What is Letter Writing, Letter Writing Sample
SeemaAgrawal43
 
Pakistan’s Leading Manpower Export Agencies for Qatar
Glassrooms Dubai
 
Social Media Marketing for Business Growth
vidhi622006
 
Financial Management for business management .pptx
Hasibullah Ahmadi
 
Rodolfo Belcastro su All Around The Worlds Magazine - Febbraio 2025
Rodolfo Belcastro
 
Appreciations - July 25.pptxdddddddddddss
anushavnayak
 
Bihar Idea festival - Pitch deck-your story.pdf
roharamuk
 
NewBase 26 July 2025 Energy News issue - 1806 by Khaled Al Awadi_compressed.pdf
Khaled Al Awadi
 
Foreign-Direct-Investment-Shaping-the-Global-Trade-Landscape 5.pptx
Blackworld7
 
TEST BANK FOR INTERMEDIATE ACCOUNTING 11TH EDITION BY DAVID SPICELAND MARK NE...
mboogey861
 
CCNP Enterprise Core vs. Concentration Exams: What’s the Difference
k10057kumar
 
Decoding BPMN: A Clear Guide to Business Process Modeling
RUPAL AGARWAL
 
Communications Recruiter Melbourne.pptx
ReithGordon
 
Memorandum and articles of association explained.pptx
Keerthana Chinnathambi
 
From Risk to Opportunity: How Cybersecurity Enhances Your Staffing Business
Withum
 
SparkLabs Primer on Artificial Intelligence 2025
SparkLabs Group
 

transactionprocessingppt-171212112608.pptx

  • 2. Contents 1. DEFINITION . 2. EXAMPLE. 3. PROPERTIES. 4. TYPES. 5. WORKING. 6. LONG DURATION TRANSACTIONS. 7. ADVANTAGES & DISADVANTAGES. 8. LONG DURATION TRANSACTIONS.
  • 3. DEFINITION  A transaction can be defined as group of tasks. A single task is the minimum processing unit which cannot be divided further.  It is an action, or series of actions that are being performed by a single user or application program, which reads or updates the information.  A transaction processing system (TPS) is a type of information system that collects , stores, modifies & retrieves the data transactions of an enterprise.
  • 4. Example Of A Transaction In DBMS  Suppose a bank employee transfers Rs 500 from A's account to B's account. This very simple and small transaction involves several low-level tasks.  A’s Account Open_Account(A) Old_Balance = A.balance New_Balance = Old_Balance – 500 A.balance = New_Balance Close_Account(A)
  • 5. Continue…  B’s Account Open_Account(B) Old_Balance = B.balance New_Balance = Old_Balance + 500 B.balance = New_Balance Close_Account(B)
  • 6. PROPERTIES OF TRANSACTIONS  There are properties that all transactions should follow & possess.  The four basic are in combination termed as ACID properties.  The ACID has a full form & is as follows: 1. ATOMICITY: Atomicity means that a transaction is either completed in full or not at all.
  • 7. Continue…  For example, if funds are transferred from one account to another , this only counts as a bone fide transaction if both the withdrawal & deposit take place.  If one account is debited & the other is not credited, it does not quilify as a transaction.  TPS systems ensure that transactions take place in their entirety.
  • 8. Continue… 2. Consistency: TPS systems exist within a set of operating rules (or integrity constraints).  If an integrity constraint states that all transactions in a database must have a positive value, any transaction with a negative value would be refused. 3. Isolation: Transactions must appear to take place in isolation.  For example, when a fund transfer is made b/w two accounts the debiting of one & the crediting of another must appear to take place simultaneously.  The funds cannot be credited to an account before they are debited from another.
  • 9. Continue… 4. Durability: Once transactions are completed they cannot be undone. To ensure that this is the case even if the TPS suffers failure, a log will be created to document all completed transactions.
  • 10. TYPES OF TPS  There are two types of TPS: 1. Batch Processing 2. Real Time Processing. 3. Batch Processing: • Batch Processing is where the information is collected & stored as a batch but not processed immediately. • Batch processing is useful for enterprises that need to process large amounts of data using limited resources.
  • 11. Continue…  Example: Payment by cheque, Credit card transactions, etc. 2. Real Time Transaction Processing: • Real Time Transaction Processing as the immediate processing of data with the database updated as the transaction is being carried out. • Mostly in Online shopping.
  • 12. Continue…  Example: Bank ATM & POS terminal( Point of sale terminal) , both of which have user input which requires immediate feedback.
  • 14. Advantages & Disadvantages Of TPS Advantages: 1. Batch or Real Time Processing available. 2. Reduction in processing time, lead time & order cycle time. 3. Reduction in inventory, personnel & ordering cost. 4. Increase in productivity & customer satisfaction. Disadvantages: 5. High setup costs. 6. Lack of standard formats. 7. Hardware & software incompatibility.
  • 15. Long Duration Transactions Traditional concurrency control techniques do not work well when user interaction is required:  Long duration: Design edit sessions are very long  Exposure of uncommitted data: E.g., partial update to a design  Subtasks: support partial rollback  Recoverability: on crash state should be restored even for yet-to-be committed data, so user work is not lost.  Performance: fast response time is essential so user time is not wasted.
  • 16. Continue…  Represent as a nested transaction  atomic database operations (read/write) at a lowest level.  If transaction fails, only active short-duration transactions abort.  Active long-duration transactions resume once any short duration transactions have recovered.  The efficient management of long-duration waits, and the possibility of aborts.  Need alternatives to waits and aborts; alternative techniques must ensure correctness without requiring serializability.