Candost's Blog

51a: Database Race Conditions

2021-11-27
Updated on 2023-09-21
  • Dirty writes: It happens when a transaction overwrites the value that is written by another transaction that hasn’t been committed yet.
  • Dirty reads: A transaction reads a value from a write transaction that is not committed yet.
  • Fuzzy Read: It happens when a transaction sees two different results when reading a value twice. When the difference is caused by committing another transaction, the value comes from pre-commit and after-commit.
  • Phantom Read: It happens when a transaction reads a set of objects whiles another transaction changes some of the data; thus, it affects the result of the read.

This note is mentioned in:

42; 42c; 48;
Reply via email

or comment below.

Comments
  • Latest
  • Oldest
  • Hottest
No comment yet.
Powered by Waline v3.5.7