Quantcast
Channel: SCN: Message List - SAP HANA and In-Memory Computing
Viewing all articles
Browse latest Browse all 8968

Re: Delta loading between two HANA tables

$
0
0

Thank you Lars,

 

I have primary key(PK)(Sequence generated) on FULL table. and Natural key(NK) in DELTA table.
so I end up writing like this

 

Upsert Table_Full select F.* from Table_full F, Table_Delta D  where D.NK = F.NK

 

 

I also tried created a procedure which will delete the Full_table records and Inserts all Delta_Table records again

 

Delete from Full_Table where NK in (Select NK from Delta_Table D)

Insert into Full_table  Select * from Delta_table

 

 

Which method is more efficient ?

 

or is there any other better way ?


Viewing all articles
Browse latest Browse all 8968

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>