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:ย 

Efficiently move multiple files with dbutils.fs.mv command on abfs storage

Dean_Lovelace
New Contributor III

As part of my batch processing I archive a large number of small files received from the source system each day using the dbutils.fs.mv command.

This takes hours as dbutils.fs.mv moves the files one at a time.

How can I speed this up?

1 ACCEPTED SOLUTION

Accepted Solutions

daniel_sahal
Esteemed Contributor
1 REPLY 1

daniel_sahal
Esteemed Contributor

@Dean Lovelaceโ€‹ 

You can use multithreading.

See example here: https://nealanalytics.com/blog/databricks-spark-jobs-optimization-techniques-multi-threading/

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