Menu

Oracle 26ai Lock-Free Reservations: The Hot Row Stops Queuing. Your CDC Stops Seeing It.
📰

Oracle 26ai Lock-Free Reservations: The Hot Row Stops Queuing. Your CDC Stops Seeing It.

DEV Community: database·Uptime Architect·about 8 hours ago
#I3YX00Yx
#devtodatabase#devto#dev#table#reservable
Long article (2524 words) — no AI summary yet.
Reading 0:00
15s threshold

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.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.