---
title: "Discussion on \"Designing Data Intensive Applications: Ch3. Storage and Retrieval | Part 1\" | Hashnode"
description: "Discussion on \"Designing Data Intensive Applications: Ch3. Storage and Retrieval | Part 1\". In the previous two articles, we discussed chapter 2 of Designing Data Intensive Applications by Martin Kleppmann which discussed data models and query languages, here and here.\nNow we move on to chapter 3 which discusses storage and retrieval. This ..."
url: "https://hashnode.com/posts/designing-data-intensive-applications-ch3-storage-and-retrieval-or-part-1/622c9c5ddf08b9b823417562"
---

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

Discussion

# [Designing Data Intensive Applications: Ch3. Storage and Retrieval | Part 1](https://sayedalesawy.hashnode.dev/designing-data-intensive-applications-ch3-storage-and-retrieval-or-part-1?utm_source=hashnode&utm_medium=feed)

In the previous two articles, we discussed chapter 2 of Designing Data Intensive Applications by Martin Kleppmann which discussed data models and query languages, here and here. Now we move on to chapter 3 which discusses storage and retrieval. This ...

Mar 12, 2022 · 18 min read · sayedalesawy.hashnode.dev  
Read the article

-   [#databases](https://hashnode.com/tag/databases)
-   [#web-development](https://hashnode.com/tag/web-development)
-   [#books](https://hashnode.com/tag/books)
-   [#storage](https://hashnode.com/tag/storage)

## Written by

[Sayed Alesawy](https://hashnode.com/@sayedalesawy)

@sayedalesawy · Cairo, Egypt

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

Lead Software Engineer @ Instabug

Lead Software Engineer at Instabug | Backend team. Passionate about large scale server side applications and distributed systems. Cairo University - Faculty of Engineering grad.

## Responses 2

Markdown supported · ⌘↵ to post

[Omar Ashour](https://hashnode.com/@OmarAshour)

[Oct 1, 2024](https://hashnode.com/posts/designing-data-intensive-applications-ch3-storage-and-retrieval-or-part-1/622c9c5ddf08b9b823417562/comment/66fc1b9dc825a74912324fd6)

Thanks for sharing this great & well crafted article!

I've got a question, you mentioned that SSTables store only a few keys in memory. How is the decision made about which keys to keep in memory vs on disk? Is there a specific strategy for optimizing this selection?

[Sayed Alesawy](https://hashnode.com/@sayedalesawy)

[Oct 2, 2024](https://hashnode.com/posts/designing-data-intensive-applications-ch3-storage-and-retrieval-or-part-1/622c9c5ddf08b9b823417562/comment/66fc1b9dc825a74912324fd6#reply-66fd06967b6db0c96c61c330)

Usually there is a setting called index\_granularity, which tells the index how many keys it should save. So for example if the index\_granularity is 5000, it will save 1 key every 5000 keys and so on. I don't there is anything to optimize here tbh but I am not 100% sure.

[Olfat Mostafa](https://hashnode.com/@Olfat)

[Mar 23, 2022](https://hashnode.com/posts/designing-data-intensive-applications-ch3-storage-and-retrieval-or-part-1/622c9c5ddf08b9b823417562/comment/623b19057753c274c2ab5176)

Great article, really enjoyed the build up of data structures 👏🏻
