Optimizing PySpark Code

Published: 30 May 2021
on channel: Data Analysis Lab
1,180
like

In this session we cover ways to optimize PySpark code. This includes descriptions of situations where slowness may occur, for example, uneven partitions and skewed joins. To combat these issues I explain repartitioning/coalescing and broadcast joins. I also explain how to place your data in memory or on disk to cache commonly used data sets. Finally, I show the interface where you can monitor memory and CPU usage to make sure you are using the optimal cluster size.

Lastly, I show how to use multiple languages inside of one Databricks notebooks including SQL and R code.

To gain access to code, data, and course materials visit https://kelseyemnett.com/2021/05/30/o....


On this page of the site you can watch the video online Optimizing PySpark Code with a duration of hours minute second in good quality, which was uploaded by the user Data Analysis Lab 30 May 2021, share the link with friends and acquaintances, this video has already been watched 1,180 times on youtube and it was liked by like viewers. Enjoy your viewing!