---
title: "Discussion on \"Transactions Deep Dive: MVCC, Locks, Isolation, and Two-Phase Commit\" | Hashnode"
description: "Discussion on \"Transactions Deep Dive: MVCC, Locks, Isolation, and Two-Phase Commit\". How local transactions use MVCC and locks for isolation, how isolation levels change what concurrent Fairfax order queries see, and how two-phase commit coordinates prepare-then-commit across participants—including in-doubt state and PostgreSQL PREPARE TRANSACTION."
url: "https://hashnode.com/posts/transactions-deep-dive-mvcc-locks-isolation-and-two-phase-commit/6b05880fc72f076aff4fc344"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Transactions Deep Dive: MVCC, Locks, Isolation, and Two-Phase Commit](https://whoai.hashnode.dev/transactions-deep-dive-mvcc-locks-isolation-and-two-phase-commit?utm_source=hashnode&utm_medium=feed)

How local transactions use MVCC and locks for isolation, how isolation levels change what concurrent Fairfax order queries see, and how two-phase commit coordinates prepare-then-commit across participants—including in-doubt state and PostgreSQL PREPARE TRANSACTION.

13h ago · 7 min read · whoai.hashnode.dev  
Read the article

-   [#database](https://hashnode.com/tag/database)
-   [#sql](https://hashnode.com/tag/sql)
-   [#postgresql](https://hashnode.com/tag/postgresql)
-   [#transactions](https://hashnode.com/tag/transactions)
-   [#distributed-transactions](https://hashnode.com/tag/distributed-transactions)

## Written by

[Hu Jin](https://hashnode.com/@whoai)

@whoai

  
[View profile](https://hashnode.com/@whoai)

Software engineer writing about AI coding tools, RAG, and Azure AI Search.

Software engineer writing about AI coding tools, RAG, and Azure AI Search.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
