Process Flow - Query history and profiling
User runs a query
Query recorded in history
Query ID generated
User requests profiling info
System fetches query details
Display execution stats and profile
When a query runs, Snowflake records it with an ID. Users can then request detailed history and profiling info to see how the query performed.