---
title: "Discussion on \"Why LSM Trees Exist: The Disk Math Behind Every Write-Heavy Database\" | Hashnode"
description: "Discussion on \"Why LSM Trees Exist: The Disk Math Behind Every Write-Heavy Database\". Deriving the log-structured merge tree from one constraint: small random writes are expensive."
url: "https://hashnode.com/posts/why-lsm-trees-exist/6b0eef364fb699a6661493d7"
---

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

Discussion

# [Why LSM Trees Exist: The Disk Math Behind Every Write-Heavy Database](https://kartikpatel.hashnode.dev/why-lsm-trees-exist?utm_source=hashnode&utm_medium=feed)

Deriving the log-structured merge tree from one constraint: small random writes are expensive.

6h ago · 15 min read · kartikpatel.hashnode.dev  
Read the article

-   [#databases](https://hashnode.com/tag/databases)
-   [#system-design](https://hashnode.com/tag/system-design)
-   [#distributed-systems](https://hashnode.com/tag/distributed-systems)
-   [#backend](https://hashnode.com/tag/backend)
-   [#data-structures](https://hashnode.com/tag/data-structures)

## Written by

[Kartik Patel](https://hashnode.com/@kartiklogs)

@kartiklogs · Pune, India

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

Backend & Platform engineer. Writing about distributed systems and database internals

Hi, I'm Kartik, a software engineer based in Pune. By day I work on high-traffic services and infrastructure. In my spare time I like taking systems apart to see how they work. I write about what I learn along the way, from distributed systems to the bugs that taught me the most. Cheers !

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
