Chapter 7. Transactions

This chapter covers

  • Introduction to transactions
  • Automatic, local, and global transactions
  • Custom transactions
  • Transaction demarcation

Transactions are one of the most important concepts to understand when working with a relational database. Few decisions you make will have a greater impact on stability, performance, and data integrity. Knowing how to identify and demarcate the transactions in the system you are building is imperative. In this chapter, we’ll discuss what transactions are and how to work with them.

7.1. What is a transaction?

In the simplest terms, a transaction is a unit of work, usually involving a number of steps that must succeed or fail as a group. Should any step in the transaction fail, all ...

Get iBATIS in Action now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.