---
title: "Discussion on \"Caching and Persistence in Spark: Storage Levels and When to Use Them\" | Hashnode"
description: "Discussion on \"Caching and Persistence in Spark: Storage Levels and When to Use Them\". Caching in Spark is lazy and partition-level — understanding how StorageLevel and eviction work is the difference between a speedup and an OOM"
url: "https://hashnode.com/posts/spark-caching-persistence-storage-levels/69e4377cf98b558fec73a31c"
---

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

Discussion

# [Caching and Persistence in Spark: Storage Levels and When to Use Them](https://abstractalgorithms.hashnode.dev/spark-caching-persistence-storage-levels?utm_source=hashnode&utm_medium=feed)

Caching in Spark is lazy and partition-level — understanding how StorageLevel and eviction work is the difference between a speedup and an OOM

Apr 19 · 24 min read · abstractalgorithms.hashnode.dev  
Updated Jun 18  
Read the article

-   [#apache-spark](https://hashnode.com/tag/apache-spark)
-   [#caching](https://hashnode.com/tag/caching)
-   [#performance](https://hashnode.com/tag/performance)
-   [#intermediate](https://hashnode.com/tag/intermediate)

## Written by

[Abstract Algorithms](https://hashnode.com/@abstractalgorithms)

@abstractalgorithms

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

Exploring the fascinating world of algorithms, data structures, and software engineering through clear explanations and practical examples.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
