Hi All,
I am working on a scenario to pull data from a SAAS application and push it into Hana Table.
I need to push all vendor data which is roughly 3000 records. I am able to pull all 3000 records in as single call and do mass insert, using multiple access element in the receiver JDBC structure and the interface gets executed in less than 1 minute. This worked as expected.
Now my business scenario needs me to do an Upsert( Insert or Update depending if vendor number exists) on the same table. I tried to use the action Update_Insert and have multiple access and multiple keys elements in the xml structure but it just takes the 1st record and discards the rest.
I went with second approach where I use XML SQL format and in the access I pass the Upsert query and in the key I pass the value that needs to be updated. Here I tried to iterate the Statement tag with the number of vendor records and then use the batch mode option in the receiver jdbc channel. `I see the message gets stuck in a scheduled state.
UPSERT TESTSCHEMA.VENDORS (VendorNo,LEGAL_NAME, PREFERRED_NAME ) VALUES (1,'TECH IT LLC','TECH IT') WITHPRIMARYKEY;
What would be a good approach and how do you handle failures ? Also on performance side what is a better approach.
Thanks in advance
Ravijeet