Quantcast
Channel: SCN : All Content - SAP HANA Developer Center
Viewing all articles
Browse latest Browse all 6745

Alternative to Dynamic SQL in Trigger

$
0
0

Dear Experts,

 

I have a scenario where the trigger converts rows to columns. There are about 70 known columns in the target table.

Our client wants real time replication using SLT . I used INSERT with CASE and UPDATE with CASE to identify the columns and their corresponding values. It takes about 2 minutes to update 10000 records but the target is 3 - 4 seconds to achieve the same.

 

I also tried using Dynamic SQL to identify columns but Unfortunately it is not supported.

 

Any suggestions to optimize the performance ??????


Viewing all articles
Browse latest Browse all 6745

Trending Articles



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