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: 

process logging optimisation

BriGuy
New Contributor II

I have created a process that runs a notebook multiple times in parallel with different parameters.  This was working quite quickly.  However I've added several logging steps that are appending log details to a dataframe then using dataframewriter to append the existing delta table.  This seems to significantly slow down the process.  I think each appends to the table are blocking other appends.

Is there a best practice for logging into 1 table from multiple processes?  If I were using SQL server I'd consider setting up a message queue.  It is acceptable for log entries to be inserted out of sequence as we can sort by timestamp but it is essential that all log entries are inserted even if the parent process is terminated.

As the table will only ever be appended to I don't need the time travel functionality if that makes a difference.  

Thanks

2 REPLIES 2

Kaniz_Fatma
Community Manager
Community Manager

Hi @BriGuy, Regarding your Databricks SQL Editor issue, you’re not alone! Several users have faced similar problems. 

 

Here are some steps you can take:

 

Contact Databricks Support:

Workaround:

Workspace Settings:

Visual Studio Code (VS Code) Integration:

  • If you’re using VS Code with Databricks, ensure that the Databricks extension is up to date.
  • Sometimes extensions can cause unexpected behavior.

Remember, troubleshooting such issues can be frustrating, but persistence pays off. Hopefully, Databricks support or community feedback will provide a solution soon! 🚀

BriGuy
New Contributor II

I don't think this relates to my issue.

Join 100K+ Data Experts: Register Now & Grow with Us!

Excited to expand your horizons with us? Click here to Register and begin your journey to success!

Already a member? Login and join your local regional user group! If there isn’t one near you, fill out this form and we’ll create one for you to join!