-
TX (Transaction) Locks- Locking and Latching-3
However, before we can say that we have a good understanding of how the row locking in Oracle works, we must look at one last…
-
What Are Locks?- Locking and Latching-3
It was during a benchmark that I discovered just how wrong I was. In the early days of these databases, it was common for the…
-
Optimistic Locking Using a Version Column – Locking and Latching
This is a simple implementation that involves adding a single column to each database table you wish to protect from lost updates. This column is…
-
What Are Locks?- Locking and Latching-2
Exactly the same issue affected concurrent updates (since an UPDATE was really a DELETE followed by an INSERT in SQL Server). Perhaps this is why…
-
Optimistic Locking Using a Checksum – Locking and Latching
This is very similar to the previous version column method, but it uses the base data itself to compute a “virtual” version column. I’ll quote…
-
What Are Locks?- Locking and Latching-1
Locks are mechanisms used to regulate concurrent access to a shared resource. Note how I used the term “shared resource” and not “database row.” It…
-
Locking Issues – Locking and Latching
Before we discuss the various types of locks that Oracle uses, it is useful to look at some locking issues, many of which arise from…
-
Optimistic Locking – Locking and Latching
The second method, referred to as optimistic locking, defers all locking up to the point right before the update is performed. In other words, we…
-
Pessimistic Locking – Locking and Latching
The pessimistic locking method would be put into action the instant before a user modifies a value on the screen. For example, a row lock…