cancel
Showing results for 
Search instead for 
Did you mean: 
Data Engineering
Join discussions on data engineering best practices, architectures, and optimization strategies within the Databricks Community. Exchange insights and solutions with fellow data engineers.
cancel
Showing results for 
Search instead for 
Did you mean: 

If data from a Delta table is cached in Databricks SQL and the table is altered in the backend, does it invalidate the cache?

User16826992666
Valued Contributor

Basically I'm worried about the scenario where data that gets cached on Databricks SQL endpoints becomes out of sync with the source Delta table. If that were to happen and data was read from the cache it would be out of date/incorrect.

Is this a concern? Is there a way that the Databricks SQL endpoint will know the cache needs to be refreshed?

1 REPLY 1

mathan_pillai
Databricks Employee
Databricks Employee

There are 3 types of caching.

1-Databricks SQL UI caching,

2-Query results caching ,

3-Delta caching .

(1) does not get invalidated. It's like your BI dashboard. BI dashboard needs to be manually refreshed.

(2) and (3) gets auto invalidation.

pls check for more info

https://docs.databricks.com/sql/admin/query-caching.html?&_ga=2.127387341.1940992691.1634591660-2391...

Connect with Databricks Users in Your Area

Join a Regional User Group to connect with local Databricks users. Events will be happening in your city, and you won’t want to miss the chance to attend and share knowledge.

If there isn’t a group near you, start one and help create a community that brings people together.

Request a New Group