QuestionQ188

VerifiedCost & Performance Optimisation

A data engineer is diagnosing a slow-running Delta Lake query in Databricks SQL that involves complex joins and large datasets. They must determine whether the underlying cause is poor data skipping, inefficient join strategies, or excessive data shuffling.

Which approach should be used to identify the specific bottlenecks with native Databricks tools?

Explanation

Databricks SQL Query Profile provides runtime, operator-level metrics and identifies the most expensive operators in its Top operators panel. It can expose costly join operators such as BroadcastNestedLoopJoin, expensive scan activity associated with insufficient pruning, and shuffle operations, which redistribute data between executors and can be resource-intensive.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!