on 02-16-2019 10:17 AM
We have complex logic in Procedure. When I run the procedure from HANA studio is take only 6 sec when executed for the first time and 3-4 sec when executed the second time. The statement is not prepared in the second call.
Second Time :
When I call the same procedure from XSJS it takes 20 seconds every time. ( I am using hdb loadProcedure to call the procedure from XSJS)
procedure = conn.loadProcedure("SCHEMA"."Proecedure");
rs=procedure(input1,input2,....);
I was able to find the find the reason for it, prepare of procedure call takes almost double of execution time and every time the Procedure is called from XSJS it is prepared.
My Questions would be:
SELECT column1 from TABLE WHERE cloumn2 = :lv_one
SELECT column1 from TABLE WHERE cloumn2 = 1
If the xsengine runs in its own process this is a known behavior. You could switch it to embedded mode in this case.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
89 | |
10 | |
9 | |
9 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.