Skip to content

danylboiko95/SQL_isolations

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

README - Transaction Isolation Levels and Anomalies

This README file provides a comparison of transaction isolation levels in PostgreSQL and MariaDB and how they relate to common transaction anomalies such as Dirty Read, Non-repeatable Reads, Phantom Reads, and Lost Update.


image

PostgreSQL Transaction Isolation Levels

  1. READ UNCOMMITTED:

    • Dirty Read: Happened
    • Non-repeatable Reads: Happened
    • Phantom Reads: Happened
    • Lost Update: Not Happened
  2. READ COMMITTED:

    • Dirty Read: Not Happened
    • Non-repeatable Reads: Not Happened
    • Phantom Reads: Not Happened
    • Lost Update: Not Happened
  3. REPEATABLE READ:

    • Dirty Read: Not Happened
    • Non-repeatable Reads: Happened
    • Phantom Reads: Not Happened
    • Lost Update: Not Happened
  4. SERIALIZABLE:

    • Dirty Read: Not Happened
    • Non-repeatable Reads: Not Happened
    • Phantom Reads: Not Happened
    • Lost Update: Not Happened

image

MariaDB Transaction Isolation Levels

  1. READ UNCOMMITTED:

    • Dirty Read: Happened
    • Non-repeatable Reads: Happened
    • Phantom Reads: Happened
    • Lost Update: Not Happened
  2. READ COMMITTED:

    • Dirty Read: Not Happened
    • Non-repeatable Reads: Not Happened
    • Phantom Reads: Not Happened
    • Lost Update: Not Happened
  3. REPEATABLE READ:

    • Dirty Read: Not Happened
    • Non-repeatable Reads: Happened
    • Phantom Reads: Not Happened
    • Lost Update: Not Happened
  4. SERIALIZABLE:

    • Dirty Read: Not Happened
    • Non-repeatable Reads: Not Happened
    • Phantom Reads: Not Happened
    • Lost Update: Not Happened

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published