Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 3353

Re: Automatic rollback after exception in HANA DB

$
0
0

Hi Eugenio,

 

Is UPSERT acceptable to your scenario? If yes, you can replace INSERT with UPSERT which will either insert or update a record.

 

If not, I guess you would have to batch your records and commit after certain number of inserts, for example commit after every 10 inserts. If there is an exception only last batch (10 records ) is/are not committed.

 

Regards
Raj


Viewing all articles
Browse latest Browse all 3353

Trending Articles



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