
Prevent lost updates with a conditional UPDATE
Protect concurrent profile edits with a version-checked SQL update, distinguish zero rows from errors, and test conflict resolution and unversioned writers.
Foundation
The journal / Ideas in progress
Engineering & everyday learningSoftware, systems, and the things I’m learning along the way. From first principles to AI in production.
Find something to readA little theory. A lot of practice.

Protect concurrent profile edits with a version-checked SQL update, distinguish zero rows from errors, and test conflict resolution and unversioned writers.

Transfer credits with PostgreSQL, check affected rows, observe commit from two sessions, and reproduce rollback, insufficient funds and repeated-request limits.

Trace changing inventory reads in PostgreSQL Read Committed, compare Repeatable Read, and locate snapshot boundaries at the first query and statement start.