Good day to all of you.
My question is about PERSISTENT PROCEDURE.
I have a program that for a million of records (different product) needs to retrieve a price.
All calculation depends on several financial factors ..so i have a CalcPrice.p very complex.
I thinked to write a program that use persistent procedure to use CalcPrice.p in memory and not reload every time.
My program (simple versione to explain my question)
DEFINE hproc AS HANDLE.
RUN CalcPrice.p SET PROCEDURE IN Hproc. /* CalcPrice.p is an external program that calls Others .p */
FOR EACH <table products> NO-LOCK:
....
....
RUN CalcPrice .p NO-ERROR .
/* Is it correct ??? In this manner ,, I really do good performance to my program ???
....
....
END.
Thanks in advance.
My question is about PERSISTENT PROCEDURE.
I have a program that for a million of records (different product) needs to retrieve a price.
All calculation depends on several financial factors ..so i have a CalcPrice.p very complex.
I thinked to write a program that use persistent procedure to use CalcPrice.p in memory and not reload every time.
My program (simple versione to explain my question)
DEFINE hproc AS HANDLE.
RUN CalcPrice.p SET PROCEDURE IN Hproc. /* CalcPrice.p is an external program that calls Others .p */
FOR EACH <table products> NO-LOCK:
....
....
RUN CalcPrice .p NO-ERROR .
/* Is it correct ??? In this manner ,, I really do good performance to my program ???
....
....
END.
Thanks in advance.