Reads observe the latest visible write in the trace model.

highlighted = computed this step

A read returns the latest write

The isolation model executes a trace from top to bottom. A read observes the latest visible write so far, including uncommitted writes. Note: the render annotates each read with its recomputed value.

latest write model\text{latest write model}

Visible value

The compiled trace has 1 read and 1 final-state item. Note: the numeric value itself appears only in the render.

reads=1,final items=1\text{reads}=1,\quad \text{final items}=1

these traces model specific anomalies under a read-latest-write execution model; isolation levels (RC/RR/SI/serializable) and MVCC mechanism are modelled later - no product claims.

anomaly: no_anomaly; final: X=10; serial: X=10stepT1T20W(X,10)1R(X)=10

Summary

This book follows one read-latest-write trace model so anomalies can be seen directly. Note: isolation levels, serializable behavior, and MVCC mechanisms are deferred to later books.

read latest write\text{read latest write}