Snowflake Result Cache

Viewed 963

I have a questions regarding the Result Cache. In one of the snowflake documentation, It is given that to use the Result cache the Role has to be same even though Users are different. However when i tried with different Roles and User i was still able to access the Result Cache, Can you confirm my understanding - Any Roles that has access to the Object can reuse the result Cache though it is not same.

My Experiment:

User 1 with Role1 executed - select * from emp;

User 2 with Role2 executed the same query - select * from emp; It used fetched the result from Cache without using the Virtual Warehouse.

enter image description here

2 Answers

The cache can not be served without any virtual Warehouse.

We require to compute (virtual Warehouse/cross virtual ) to process or preserve the cached data in there local disk.

"These are available across virtual warehouses, so query results returned to one user is available to any other user on the system who executes the same query, provided the underlying data has not changed."

for more detail link

Related