Troubleshoot | A code recipe takes a long time to run#

In the case of a code recipe (Python, PySpark, R), it’s possible that the code simply has some inefficiencies that are slowing down the code execution. To diagnose this, a good strategy is to run your code line by line in a notebook. If one line or section takes a very long time to complete, you can try to alter that part of the code to be more performant.

A code recipe running on the DSS server is similar to running the same code outside DSS. This means that the operating system resources will impact a code recipe running in DSS in similar ways that they’ll impact code running outside of DSS. Specifically, concurrent processes on the DSS server can impact the performance of a code recipe.