01
Query Profile evidence
Look for partitions scanned vs total, bytes spilled to local/remote storage, queued time, and operators with disproportionate output rows (joins exploding before a filter). Spillage to remote storage is the classic signal to resize up.
02
Clustering keys
Best for large tables filtered on high-cardinality columns with range or equality predicates. Clustering is maintained automatically once defined; it costs credits to re-cluster and is not free.
03
Search Optimization Service
Accelerates selective point lookups, substring/regex searches and geospatial predicates without rewriting the query or changing the table's physical layout. It is complementary to clustering, and it is not a full-text index you query directly.
04
Materialized views
Pre-computed, automatically maintained result sets refreshed by Snowflake's background service; good for repeated aggregations over large tables, and constrained (limited aggregate functions, no UDFs/joins in the definition).
05
Result set caching
Identical query text + unchanged micro-partitions returns the previous result within 24 hours, uses no warehouse, and is bypassed by functions like CURRENT_TIMESTAMP unless the query is parameterised consistently.
06
Semi-structured data
VARIANT holds JSON/Avro/Parquet-ish structures. FLATTEN turns arrays/objects into rows; LATERAL FLATTEN in the FROM clause is how you explode one document into many rows without a join to a helper table.
07
Dynamic tables (2026 addition)
Declarative transformation: you state the query and a TARGET_LAG, and Snowflake decides when to refresh. Target lag can be a time value or DOWNSTREAM; refresh mode is incremental where possible, full otherwise. This replaces most hand-wired streams-and-tasks chains.