Read uncommitted is the lowest isolation level defined by the SQL standard, at which a transaction may read rows modified by other transactions before those transactions commit. In database transactions, it trades correctness for minimal locking overhead, and it is the only standard level that permits the dirty read anomaly.
The ANSI/ISO SQL-92 standard defines four isolation levels: read uncommitted, read committed, repeatable read and serializable isolation. Read uncommitted sits at the bottom of that hierarchy, and many modern engines either implement it with stronger guarantees than the standard requires or do not offer it in practice.
How read uncommitted behaves
Under read uncommitted, a reading transaction does not wait for write locks held by other transactions and does not take shared locks of its own in lock-based engines. It therefore sees the latest in-progress version of each row, whether or not the writer eventually commits or rolls back.
Writes are still protected. Even at this level, a transaction cannot overwrite uncommitted changes of another transaction, because exclusive write locks remain in force; the standard only relaxes what readers may observe. This means lost updates from concurrent writers are prevented by the write locks, while reads remain unprotected.
The table shows which standard anomalies each isolation level allows.
| Isolation level | Dirty read | Non-repeatable read | Phantom read |
|---|---|---|---|
| Read uncommitted | Possible | Possible | Possible |
| Read committed | Prevented | Possible | Possible |
| Repeatable read | Prevented | Prevented | Possible |
| Serializable | Prevented | Prevented | Prevented |
Dirty reads and related anomalies
A dirty read occurs when transaction A reads a value that transaction B has written but not committed, and B later rolls back. Transaction A has then acted on data that never officially existed. This is the defining risk of read uncommitted.
In lock-based engines such as SQL Server, the problems go beyond dirty reads. Because an unlocked scan can follow pages while other sessions split or move them, a query may skip rows or read the same row twice. Under heavy concurrent modification, a scan can even fail with a data movement error. These effects make aggregate results such as counts and sums unreliable even when every writer commits.
The following table lists the concrete failure modes and their practical consequences.
| Failure mode | Cause | Typical consequence |
|---|---|---|
| Dirty read | Reading a row later rolled back | Decisions based on phantom data |
| Missed rows | Page split moves rows behind the scan | Totals too low |
| Duplicate rows | Row moves ahead of the scan | Totals too high |
| Inconsistent row pairs | Partial multi-row update visible | Broken business invariants |
| Scan abort | Page freed during unlocked read | Query error under load |
Read uncommitted in major database engines
Engine support for read uncommitted varies widely, because the standard defines only minimum guarantees and engines may provide stronger ones. Engines built on MVCC generally have little reason to offer genuine dirty reads, since readers already avoid blocking by reading committed snapshots.
| Engine | Behavior when requested | Practical note |
|---|---|---|
| PostgreSQL | Treated as read committed | Dirty reads never occur |
| SQL Server | True dirty reads; same as NOLOCK hint | Common source of inconsistent reports |
| MySQL InnoDB | Reads latest row version without consistency | Rarely used in production |
| Oracle Database | Not offered | Readers use consistent snapshots |
| SQLite | Effective only with shared cache mode | Default connections are unaffected |
In SQL Server, the table hint WITH (NOLOCK) applies read uncommitted semantics to a single table in a query. Its widespread use as a performance shortcut is one of the most common causes of silently wrong results in that ecosystem, and enabling read committed snapshot isolation is usually the better remedy for reader-writer blocking.
When read uncommitted is acceptable
Read uncommitted is acceptable only when approximate answers are explicitly tolerated and no decision, write or user-facing figure depends on exact values. Experienced practitioners treat it as a diagnostic tool rather than an application setting.
| Use case | Suitable | Reason |
|---|---|---|
| Monitoring progress of a long batch load | Yes | Rough row counts are sufficient |
| Ad hoc diagnostics on a blocked system | Yes | Avoids waiting behind locks |
| Financial balances or invoices | No | Rolled-back data can produce wrong amounts |
| Reports that drive business decisions | No | Missed or duplicated rows distort totals |
| Any read followed by a dependent write | No | Corrupts data integrity |
Where the actual goal is non-blocking reads, snapshot isolation or read committed with row versioning provides the same concurrency benefit without exposing uncommitted data, at the cost of version storage.
Common misconceptions about read uncommitted
Misunderstandings about this level usually stem from treating it as a free performance switch. In practice, the gain depends on how much lock contention a workload actually has, and the cost appears later as data quality problems that are hard to trace back to the isolation setting. The points below summarize the errors that reviewers most often find in production code.
- It does not disable write locking: writers still block other writers on the same rows.
- It is not a universal speedup: in MVCC engines it usually changes nothing measurable.
- Dirty data is not the only risk: skipped and duplicated rows can appear even without rollbacks.
- Requesting it does not guarantee it: the engine may silently upgrade it to read committed.
The level is set per session or per transaction with SET TRANSACTION ISOLATION LEVEL READ UNCOMMITTED, so a single misconfigured connection pool or ORM default can spread dirty reads across an entire application. Auditing connection settings is therefore part of any transaction isolation review.
In plain words
Imagine reading over the shoulder of someone filling in a form. You see their answers as they type, even the ones they will erase a moment later. Read uncommitted lets a program peek at changes that are still in progress.
That peeking is fast because nobody waits for anyone else, but the information may simply be wrong. The key takeaway is that this setting is fine for a quick glance and unsafe for anything that matters.
A real-world example
A logistics company runs SQL Server for warehouse inventory. To stop a dashboard from blocking during busy shifts, a developer adds WITH (NOLOCK) to the stock-level query. Within weeks, supervisors notice that stock totals occasionally jump by several hundred units and then return to normal.
Investigation shows two causes. Pick transactions that failed validation and rolled back were briefly visible, and a nightly reorganization of the stock table moved rows while the dashboard scanned it, so some pallets were counted twice. One supervisor had already reordered goods based on a falsely low figure.
The database team removes the hint and enables read committed snapshot isolation for the database. The dashboard stays non-blocking, tempdb usage rises modestly for version storage, and the inconsistent totals disappear entirely.