cancel
Showing results for 
Search instead for 
Did you mean: 
Data Engineering
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
Valued Contributor
Valued Contributor

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...

Welcome to Databricks Community: Lets learn, network and celebrate together

Join our fast-growing data practitioner and expert community of 80K+ members, ready to discover, help and collaborate together while making meaningful connections. 

Click here to register and join today! 

Engage in exciting technical discussions, join a group with your peers and meet our Featured Members.