DELAPARRA
Index
Color
NL
Category: SQL

READ UNCOMMITTED

Explained by Updated

What is READ UNCOMMITTED?

READ UNCOMMITTED: Weakest isolation level — a transaction can read another’s uncommitted changes (dirty reads allowed). READ UNCOMMITTED is the weakest transaction isolation level. A transaction can see changes other transactions have made but not yet committed, which are called dirty reads. The data you read may be rolled back a moment later, so you can make decisions based on values that never officially existed. In exchange, reads block less and can be slightly faster.

Definition source Coders Lingo, CC BY 4.0

Frequently asked questions about READ UNCOMMITTED

What should you keep in mind with READ UNCOMMITTED?

It is rarely a good choice for business data. You might see it used for rough statistics on very busy tables, where an approximate count is acceptable. PostgreSQL does not even implement it; asking for it gives you READ COMMITTED instead. If you find it in a codebase, check whether the speed gain is real and whether any decision depends on the data read under it.

What does an example of READ UNCOMMITTED look like?

SET TRANSACTION ISOLATION LEVEL READ UNCOMMITTED;

At a glance

CategorySQL
Explained by
Updated

More SQL terms

All terms starting with R

Skills

Download all skills (zip)

Manuals

Related services

Need any help?

Stuck on one of these in your own project? Tell me what you are working on and I will tell you how I would approach it.