---
title: "Discussion on \"Storage Engines Compared: B+ Trees, LSM-Trees, WAL, and Checkpoints\" | Hashnode"
description: "Discussion on \"Storage Engines Compared: B+ Trees, LSM-Trees, WAL, and Checkpoints\". How heap and B+ tree engines like PostgreSQL differ from LSM write paths with memtables, SSTables, and compaction; how WAL-before-data, checkpoints, and dirty-page flushing bound crash recovery—using the customers and orders example."
url: "https://hashnode.com/posts/storage-engines-compared-b-trees-lsm-trees-wal-and-checkpoints/6b04370e700d0d3bbff52b21"
---

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

Discussion

# [Storage Engines Compared: B+ Trees, LSM-Trees, WAL, and Checkpoints](https://whoai.hashnode.dev/storage-engines-compared-b-trees-lsm-trees-wal-and-checkpoints?utm_source=hashnode&utm_medium=feed)

How heap and B+ tree engines like PostgreSQL differ from LSM write paths with memtables, SSTables, and compaction; how WAL-before-data, checkpoints, and dirty-page flushing bound crash recovery—using the customers and orders example.

1d 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)
-   [#storage](https://hashnode.com/tag/storage)
-   [#lsm](https://hashnode.com/tag/lsm)

## 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.
