Snowflake – Query Result from Cache or Disk

Yesterday I shared my experience with Snowflake – Stored Procedure Template in JavaScript and a lot of people liked it. Many asked for another tip on a similar topic. Well, let me share another thing which I learned recently on Comprehensive Database Performance Health Check, The topic is how to identify on the Snowflake platform if the query result is from cache or disk. Well, it is straightforward to learn.

Snowflake - Query Result from Cache or Disk cacheordisk-800x405

First login into the Snowflake portal. Over here go to the option History on the top right part and click on it.

Snowflake - Query Result from Cache or Disk snowflake-cache0

Here you will see a list of queries. Click on the query of which you want to see the status. If you see something as following that means the query is coming from the cache. The operator Query Result Reuse itself says that the actual query did not run at all.

Snowflake - Query Result from Cache or Disk snowflake-cache2

However, if you see query structure and various SQL operators as displayed in the following image, that means actually query has run and retrieved the necessary data to be displayed on the screen.

Snowflake - Query Result from Cache or Disk snowflake-cache2

This is very little detail but very helpful in the case of performance tuning. Even though the query is very complex, once it is cached, the result is displayed very quickly.

Here are my few recent videos and I would like to know what is your feedback about them. Do not forget to subscribe SQL in Sixty Seconds series. I hope you appreciate learning about the Last 5 SQL in Sixty Seconds Video.

Reference: Pinal Dave (http://blog.SQLAuthority.com)

Snowflake, SQL Cache, SQL Memory, SQL Server
Previous Post
Snowflake – Stored Procedure Template in JavaScript
Next Post
SQL Extensibility Features with Snowflake

Related Posts

Leave a Reply