State the difference between persist() and cache() functions.
Answer Posted / Sunanda Biswas
"The main difference between Spark's persist() and cache() functions is that caching puts the RDD into memory by default, while persist() allows you to specify storage level. By default, the MEMORY_ONLY storage level is used for cache(), but you can use different levels like MEMORY_ONLY_SER or DISK_ONLY for persist()."n
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers