What does 'Percentage scanned from cache' indicate in Snowflake's query profiler?

Master the SnowPro Advanced Architect Test with flashcards, multiple-choice questions, and detailed explanations. Prepare thoroughly for your certification!

Multiple Choice

What does 'Percentage scanned from cache' indicate in Snowflake's query profiler?

Explanation:
The metric reflects how much of the data scanned for the query was served from the compute node’s own caching layer. Snowflake keeps recently read data blocks in a local disk cache on each virtual warehouse. When a query accesses data that’s already cached, those blocks are read from this fast local cache rather than from cloud storage, speeding up the operation. The percentage scanned from cache therefore shows what portion of the scan benefited from that cached data. This is distinct from metadata caching (which speeds up metadata lookups and planning), the query/result cache (which can bypass execution entirely if an exact result is already stored), or the underlying external storage itself (the source of data). So a higher percentage scanned from cache means more data was read from the warehouse’s local disk cache, not from storage.

The metric reflects how much of the data scanned for the query was served from the compute node’s own caching layer. Snowflake keeps recently read data blocks in a local disk cache on each virtual warehouse. When a query accesses data that’s already cached, those blocks are read from this fast local cache rather than from cloud storage, speeding up the operation. The percentage scanned from cache therefore shows what portion of the scan benefited from that cached data.

This is distinct from metadata caching (which speeds up metadata lookups and planning), the query/result cache (which can bypass execution entirely if an exact result is already stored), or the underlying external storage itself (the source of data). So a higher percentage scanned from cache means more data was read from the warehouse’s local disk cache, not from storage.

Subscribe

Get the latest from Passetra

You can unsubscribe at any time. Read our privacy policy