File tree Expand file tree Collapse file tree 1 file changed +1
-4
lines changed Expand file tree Collapse file tree 1 file changed +1
-4
lines changed Original file line number Diff line number Diff line change @@ -831,13 +831,10 @@ turning on some experimental options.
831
831
832
832
## Caching Data In Memory
833
833
834
- Spark SQL can cache tables using an in-memory columnar format by calling ` sqlContext.cacheTable("tableName") ` .
834
+ Spark SQL can cache tables using an in-memory columnar format by calling ` sqlContext.cacheTable("tableName") ` or ` schemaRDD.cache() ` .
835
835
Then Spark SQL will scan only required columns and will automatically tune compression to minimize
836
836
memory usage and GC pressure. You can call ` sqlContext.uncacheTable("tableName") ` to remove the table from memory.
837
837
838
- Note that if you call ` schemaRDD.cache() ` rather than ` sqlContext.cacheTable(...) ` , tables will _ not_ be cached using
839
- the in-memory columnar format, and therefore ` sqlContext.cacheTable(...) ` is strongly recommended for this use case.
840
-
841
838
Configuration of in-memory caching can be done using the ` setConf ` method on SQLContext or by running
842
839
` SET key=value ` commands using SQL.
843
840
You can’t perform that action at this time.
0 commit comments