liveBook · Manning

Dirty read

A dirty read is a concurrency anomaly in which a transaction reads data written by another transaction before that transaction commits.

How 2 Manning books explain it

Java Persistence with Spring Data and Hibernate epub

A dirty read is a concurrency anomaly in which a transaction reads changes made by another transaction before those changes are committed.

How it is used
Explains a transaction anomaly that motivates selecting an appropriate isolation level.
How deep it goes
Defines the transaction sequence and rollback danger, then places the anomaly within isolation-level comparisons.
Examples
Uses a two-transaction timeline in which Transaction 2 reads Transaction 1's uncommitted change.
What you can do after
Evaluate transaction isolation choices by recognizing when reads can observe data that may later roll back.

Read how Java Persistence with Spring Data and Hibernate epub explains dirty read →

100 SQL Server Mistakes and How to Avoid Them

A dirty read is the retrieval of data changed by another transaction before that change has been committed.

How it is used
Warns against using Read Uncommitted to reduce lock contention when reporting reads can encounter uncommitted updates.
How deep it goes
Demonstrates the update, reporting query, and rollback sequence, while stopping short of database-engine internals.
Examples
Uses a MarketingArchive BidPrice update, a campaign SUM report, and a rollback across two query windows.
What you can do after
Diagnose dirty reads with paired T-SQL transactions and choose Read Committed instead of unsafe performance shortcuts.

Read how 100 SQL Server Mistakes and How to Avoid Them explains dirty read →

Related concepts

These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.