Every system has a hot row. The stock count of the product on sale, the seat counter of a popular flight, the balance of the account everything is paid from. Each sale does qty = qty - 1 , and each one takes the row lock and holds it until commit. Under load, the sessions line up behind each other in enq: TX - row lock contention , and the time a transaction spends between its update and its commit becomes the time everyone else waits.
Oracle 23ai added a fix for exactly this, and 26ai keeps it: lock-free reservations . Mark the column RESERVABLE , and an update of it no longer locks the row. Oracle records the change as a reservation and applies it at commit.
I measured it on Oracle AI Database 26ai Free. It works, and the difference under contention is large.…