QuestionQ126

VerifiedTroubleshooting and Tuning Apache Spark DataFrame API Applications.

Among the following situations, when is storing DataFrame df at the MEMORY_AND_DISK storage level more advantageous than using the MEMORY_ONLY storage level?

Explanation

MEMORY_ONLY recomputes partitions that do not fit in memory, whereas MEMORY_AND_DISK stores those partitions on disk for later reads. Disk spilling is beneficial when reading the excess computed data from disk takes less time than recreating it through the DataFrame's logical plan.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!