CodeBlanks Logo Icon CodeBlanks

READ UNCOMMITTED

Learn the lowest level and dirty reads.

READ UNCOMMITTED

READ UNCOMMITTED is the lowest level. Uncommitted data can be read (dirty read).

SET TRANSACTION ISOLATION LEVEL READ UNCOMMITTED;

Dirty reads are possible.

READ UNCOMMITTED — details

A dirty read is reading data another transaction has not committed. Fast but inconsistent.

For example, if the other transaction is rolled back, the value you read never really existed; that is why this level is rarely used in production.

Practice READ UNCOMMITTED

Set the isolation level to READ UNCOMMITTED.

Starter code

query.sql
-- lowest level
SET

Sample solution

query.sql
SET TRANSACTION ISOLATION LEVEL READ UNCOMMITTED;

Expected output

İzolasyon ayarlandı

Questions and answers

Review the lesson questions together with their answers. To test yourself, solve the lesson interactively.

1 READ UNCOMMITTED

Question
SET TRANSACTION ISOLATION LEVEL ____
Answer
SET TRANSACTION ISOLATION LEVEL READ UNCOMMITTED

Explanation: READ UNCOMMITTED is the right answer.

2 What risk does READ UNCOMMITTED have?

  • Deadlock
  • Dirty read Correct answer
  • An error
  • Slowness

Explanation: READ UNCOMMITTED has a dirty read risk.

3 READ UNCOMMITTED: match the terms

Term Meaning
dirty read dirty read
lowest fast
uncommitted uncertain
risky dangerous

All lessons in Advanced