Hi All,
I have two tables, both have same table definition
1) Full_Target_Table
2)Delta_Target_Table
Delta table will be truncated and loaded with daily data.
My requirement is to load the Full_Target_Table (Insert/Update) using the delta table. Need to update if any records with same natural key exists or insert if didn't exits in the Full_Target_Table.
I am thinking of stored procedure to loop through the delta table records one by one and upsert/replace in the Full_Target_Table
As the tables are really huge(both delta and full), looping through each record in delta table could be intensive operation.
Is there any other way? Any suggestion to improve the performance ?
Thank you !!