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: 

Delta Lake Table Daily Read and Write job optimization

AH
New Contributor

AH_0-1717569489175.png

I have created 7 job for each business system to extract product data from each postgress source then write all job data into one data lake delta table [raw_product].

each business system product table has around 20 GB of data.

do the same thing for 15 table .

is any way to read and write fast in delta tables  

 

one job looks like the one below

AH_1-1717572455868.png

daily day loaded into delta table by using merge command

AH_3-1717572644640.png

 

AH_2-1717572557758.png

 

1 REPLY 1

shan_chandra
Esteemed Contributor
Esteemed Contributor

@AH  - we can try out the config 

if read or fetch from postgres is slow , we can increase the fetchsize , numPartitions (to increase parallelism). kindly try to do a df.count() to check on slowness. 

https://spark.apache.org/docs/latest/sql-data-sources-jdbc.html

 

 If the write is slow, kindly try to a write the data to a temp table first before merge to see if this is an issue due to merge. 

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!