cancel
Showing results for 
Search instead for 
Did you mean: 
Data Engineering
cancel
Showing results for 
Search instead for 
Did you mean: 

How to reduce time while loading data into the azure synapse table?

tinendra
New Contributor III

Hi All,

I just wanted to know if is there any option to reduce time while loading Pyspark Dataframe into the Azure synapse table using Databricks.

like..

I have a pyspark dataframe that has around 40k records and I am trying to load data into the azure synapse table using databricks it is taking almost 1.10 hrs+ to load complete data into the azure table. I am using save mode('overwrite') as per requirements.

Please let me know if any possible solution to reduce time.

Thanks,

Tinendra

5 REPLIES 5

Ajay-Pandey
Esteemed Contributor III

Hi @Tinendra Kumar​ ,

You can increase the DTU in synapse and if possible, use append mode while saving the files that will help you to reduce the time.

tinendra
New Contributor III

Hi @Ajay Pandey​ 

I don't have any control over the azure side. Could you please tell me if is there any way/option to do this on the spark/databricks side?

Ajay-Pandey
Esteemed Contributor III

Hi @Tinendra Kumar​ ,

There is no option to check your permission in databricks.

-werners-
Esteemed Contributor III

have you checked this:

https://learn.microsoft.com/en-us/azure/databricks/archive/azure/synapse-polybase

tbh I do not use Databricks to load data into synapse. I write the data as parquet /delta lake on our data lake, and use ADF to copy to synapse if necessary. this goes pretty fast.

Another option is to use Synapse Serverless or External tables on the parquet files themselves.

Anonymous
Not applicable

Hi @Tinendra Kumar​ 

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!

Welcome to Databricks Community: Lets learn, network and celebrate together

Join our fast-growing data practitioner and expert community of 80K+ members, ready to discover, help and collaborate together while making meaningful connections. 

Click here to register and join today! 

Engage in exciting technical discussions, join a group with your peers and meet our Featured Members.