From UDF to Broadcast Join and Back: The Story of a Spark Optimization
summary
A practical case study of optimizing a Spark job: starting from Python UDFs, the talk examines execution plans and performance pitfalls, then refactors the job into a Broadcast Join and back, showing step-by-step improvements and lessons about Scala vs PySpark and Python UDF performance.
AI-written summary · about
chapters (10)
- 0:00Introduction
- 4:47Problem statement
- 12:46First Python UDF solution
- 18:40UDF performance issues
- 23:24Scala UDF solution
- 26:38Broadcast Join intermediate
- 30:31Math model error
- 32:19Final optimal solution
- 36:27Benchmark results and conclusions
- 38:34Q&A
related talks
30mImproving PySpark Performance: Spark performance beyond the JVM
36mNo more struggles with Apache Spark (PySpark) workloads in production
30mOptimize Spark Jobs Using Its UI
34mWorking with Tensorflow from the JVM #bbuzz
21mAvoiding Spark Pitfalls at Scale
29mDataEngBytes 2023 - BRI-T1-03 - Yousry Mohamed
23mEnriching datasets using Apache Spark solves tracing in financial industry
36mScaling data workloads using the best of both worlds: pandas and Spark
