Snowflake Data Cloud (50 Qs)•Part 3: Advanced Optimization, Scale & Cortex AI (25 - 35)
Query Profiler and Bottleneck Diagnosis: Spilling to local/remote storage and pruning efficiency.
senior LevelMost AskedPerformance
In Simple Words: Using the Snowflake UI Query Profiler to fix slow queries:
- Spilling to Local Storage: Occurs when intermediate query data exceeds Virtual Warehouse RAM. Indicates warehouse size is too small; scale up from M to L.
- Spilling to Remote Storage: Occurs when data exceeds both RAM and local SSD, spilling to slow S3/GCS. Drastic performance collapse. Immediate indicator to resize warehouse or rewrite query.
- Partitions Scanned vs Total: If a query scans 10,000 out of 10,000 partitions, clustering is broken or query lacks partition pruning filters.