pessimistic locking term
take a lock before reading, hold until done
Default mode of most DBs for explicit locking. SELECT ... FOR UPDATE. Right when contention is high. Wrong when held long — blocks others.
take a lock before reading, hold until done
Default mode of most DBs for explicit locking. SELECT ... FOR UPDATE. Right when contention is high. Wrong when held long — blocks others.