Same result, 3 seconds or 30 minutes. Query optimization in Databricks

Seven techniques that decide whether the engine does a little work or a lot