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: 

Poor Auto Loader performance with CSV files on S3

dotan
New Contributor II

I setup a notebook to ingest data using Auto Loader from an S3 bucket that contains over 500K CSV files into a hive table.

Recently the amount of rows (and input files) in the table grew from around 150M to 530M and now each batch takes around an hour to complete as opposed to around 1-2 minutes before the growth. I tried optimizing the table, enabling auto optimize, setting spark.sql.shuffle.partitions to 2000 in the cluster, using high performance nodes but it still takes a very long time to complete each batch.

Is there anything else I can try to improve the performance?

Thank you

3 REPLIES 3

Debayan
Databricks Employee
Databricks Employee

Could you please go through https://docs.databricks.com/optimizations/index.html and let us know if this helps.

-werners-
Esteemed Contributor III

Are you sure the issue lies within the delta lake merge?

It could also be the autoloader itself.

Can you check these links?

https://docs.databricks.com/ingestion/auto-loader/file-detection-modes.html

https://docs.databricks.com/ingestion/auto-loader/production.html

Anonymous
Not applicable

Hi @Dotan Schachter​ 

Hope all is well! Just wanted to check in if you were able to resolve your issue and would you be happy to share the solution or mark an answer as best? Else please let us know if you need more help. 

We'd love to hear from you.

Thanks!

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