cancel
Showing results for 
Search instead for 
Did you mean: 
Data Engineering
Join discussions on data engineering best practices, architectures, and optimization strategies within the Databricks Community. Exchange insights and solutions with fellow data engineers.
cancel
Showing results for 
Search instead for 
Did you mean: 

Databricks Python function achieving Parallelism

sathya08
New Contributor

Hello everyone,

I have a very basic question wrt Databricks spark parallelism.

I have a python function within a for loop, so I believe this is running sequentially.

Databricks cluster is enabled with Photon and with Spark 15x, does that mean the driver is responsible to make this to run in parallel even though it is in a for loop OR do I need to introduce something to make the function to run in parallel.

Need you help to understand on the above one and if I need to introduce parallelism explicitly then how do I do it.

Also how to achieve it based on the total executors cores in the cluster [ I read executor cores are responsible for the parallelism ].

Please correct me if my understanding is wrong.

Thanks

Sathya

 

 

 

0 REPLIES 0

Connect with Databricks Users in Your Area

Join a Regional User Group to connect with local Databricks users. Events will be happening in your city, and you won’t want to miss the chance to attend and share knowledge.

If there isn’t a group near you, start one and help create a community that brings people together.

Request a New Group