The Magic xpa gateways to the various SQL databases support array processing. When fetching records from the database, the gateway fetches a group of records, rather than one record at a time, thereby reducing network traffic. The array size is the number of rows fetched together from the database in a single fetch operation. The data is stored in an engine-side array.
When the default value of 0 is set:
In the following scenarios, the array size is calculated because all records are fetched:
-
Main Data source for batch task
-
DSQL online / RIA that fetches all records into the temporary table
-
Magic sort
-
Data source for choice controls
-
DataViewToxxx functions
-
Loading a resident table into the memory table
In these scenarios, the number of records in the array are calculated according to the following formula: Since version: 3.0a
floor(Cache size for array fetching / The record's length)
The Cache size for array fetching is set in the Cache size for array fetching environment setting.
When the array size is greater than 0, the array size is used as is and no calculation is done.
Relevant interfaces: MSSQL, Oracle, DB2/400 and Space (IMDG)
Default value: 0
See also How Do I Reduce Database Access?
|