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

better way to dynamically update a HANA table

$
0
0

In a SAPUI5 application on HANA I need to change data in HANA tables. In my application I use both stored SQLScript procedures and XSJS, so I can do either:

  1. run insert/update/delete SQL statements from XSJS,
  2. change the tables' content from within the stored procedures.

 

The option #2 seems more natural, because most of the new data in the app is actually generated by stored procedures. However it means I have to change sql_mode to UNSECURE, and it has some, well, unsecure connotations. A potential customer of the app may not like it, for they would have to do what's perceived as lowering security.

 

The option #1 doesn't require that "lowering security", and theoretically should't lead to performance degradation, because both XS and stored procedures are executed somewhere within HANA memory and XS integration should be seamless. Still it seems like there is an extra unneeded step in the process: run a a stored procedure from XSJS, receive its results into ResultSet, then go through that result set and generate insertion statements.

 

So, a) am I missing any other way to update tables? b) if these above are the only two, which one is actually more appropriate?


Viewing all articles
Browse latest Browse all 10482

Trending Articles



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