How to increase the performance for a module running parallely (using asynchronous method) in Progress 4gl Appserver?

StackOverflow https://stackoverflow.com/questions/23158945

  •  05-07-2023
  •  | 
  •  

Question

  1. Some people says buffer for the table will create issue while running a module in appserver may I know the reason.

  2. In my Main module I’m using For each ... break by condition to read the record from DB which needs to read 100k of records within minute. So if I'm not using Break By condition in the For each loop and running batch parallel (using asynchronous method based on input count will create multiple session) through appserver then I can able to improve performance little bit but i need to improve the performance even more what else i can do?Please suggest me..

eg: RUN report.p ON SERVER sh ASYNCHRONOUS SET ah EVENT-PROCEDURE "reportDone" IN THIS-PROCEDURE (input aaaa, OUTPUT yyy AS INT).

  1. Buffer vs Temp table for a table which will give high performance?
Was it helpful?

Solution

It makes no performance difference if you reference a defined buffer or directly use the table name (that just results in the use of a "default buffer").

The use of temp-tables depends entirely on how you go about it. There will be overhead in "marshalling" records into the temp-table originally but there may be sufficient processing advantage to offset that. But there is no one size fits all "which is faster" answer.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top