Skip to content

Commit 7b39864

Browse files
committed
[SPARK-4916]Update SQL programming guide
1 parent 6018122 commit 7b39864

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

docs/sql-programming-guide.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -831,12 +831,10 @@ turning on some experimental options.
831831

832832
## Caching Data In Memory
833833

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()`.
835835
Then Spark SQL will scan only required columns and will automatically tune compression to minimize
836836
memory usage and GC pressure. You can call `sqlContext.uncacheTable("tableName")` to remove the table from memory.
837837

838-
Note that you call `schemaRDD.cache()` alike `sqlContext.cacheTable(...)` in 1.2 release of Spark, tables will be cached using the in-memory columnar format.
839-
840838
Configuration of in-memory caching can be done using the `setConf` method on SQLContext or by running
841839
`SET key=value` commands using SQL.
842840

0 commit comments

Comments
 (0)