Quantcast
Channel: SCN: Message List - SAP HANA Developer Center
Viewing all articles
Browse latest Browse all 9165

Execute procedure parallel

$
0
0

I would like to execute several procedures on HANA parallel e.g. the attached one.

I have two tables  each witch a PERSON_ID, DATE and PROPERTY and want to select those DATES which are only in TABLE_A.

However, the procedure is called several times for different properties.So I would like to execute this procedure parallel. What I must change on the way to call the procedure? the procedure it self and settings on HANA for this?

 

CREATE PROCEDURE "TEST_SYSTEM"."myProc" (  IN property VARCHAR(100),
)  LANGUAGE SQLSCRIPT  SQL SECURITY INVOKER  DEFAULT SCHEMA TEST_SYSTEM  AS
BEGIN
INSERT INTO JOIN_TABLE("DATE", "PERSON_ID")
SELECT A."DATE", A."PERSON_ID"
FROM "TABLE_A" A
LEFT JOIN "TABLE_B" B
ON A."DATE" = B."DATE" AND A."PERSON_ID" = B."PERSON_ID"
WHERE A."PROPERTY" = :property
AND B."DATE" IS NULL
ORDER BY "DATE" ASC, "PERSON_ID" ASC;
END;

Viewing all articles
Browse latest Browse all 9165

Trending Articles



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