8

Snowflake - Query Result from Cache or Disk - SQL Authority with Pinal Dave

 2 years ago
source link: https://blog.sqlauthority.com/2021/10/01/snowflake-query-result-from-cache-or-disk/?utm_campaign=snowflake-query-result-from-cache-or-disk
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

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)

Pinal Dave is an SQL Server Performance Tuning Expert and independent consultant with over 17 years of hands-on experience. He holds a Masters of Science degree and numerous database certifications.

Pinal has authored 13 SQL Server database books and 40 Pluralsight courses. To freely share his knowledge and help others build their expertise, Pinal has also written more than 5,500 database tech articles on his blog at https://blog.sqlauthority.com.

Pinal is an experienced and dedicated professional with a deep commitment to flawless customer service. If you need help with any SQL Server Performance Tuning Issues, please feel free to reach out at [email protected].

Pinal is also a CrossFit Level 1 Trainer (CF-L1) and CrossFit Level 2 Trainer (CF-L2).


Nupur Dave is a social media enthusiast and an independent consultant. She primarily focuses on the database domain, helping clients build short and long term multi-channel campaigns to drive leads for their sales pipeline.


Exclusive Newsletter

Is your SQL Server running slow and you want to speed it up without sharing server credentials? In my Comprehensive Database Performance Health Check, we can work together remotely and resolve your biggest performance troublemakers in less than 4 hours.

Once you learn my business secrets, you will fix the majority of problems in the future.


Have you ever opened any PowerPoint deck when you face SQL Server Performance Tuning emergencies? SQL Server Performance Tuning Practical Workshop is my MOST popular training with no PowerPoint presentations and 100% practical demonstrations.

Essentially I share my business secrets to optimize SQL Server performance.


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK