Skip to content

Latest commit

 

History

History
12 lines (8 loc) · 294 Bytes

spark-sql-caching.adoc

File metadata and controls

12 lines (8 loc) · 294 Bytes

Caching

Caution
FIXME

You can use CACHE TABLE [tableName] to cache tableName table in memory. It is an eager operation which is executed as soon as the statement is executed.

sql("CACHE TABLE [tableName]")

You could use LAZY keyword to make caching lazy.