In the Read from DB stage, the optimum fetch size is
calculated by taking execution time readings between a Read from DB
stage and a Write to Null stage.
Ensure you test execution times of the test job with the different fetch size values
using your own application.
-
Create a job in the Spectrum Enterprise Designer.
-
Drag a Read from DB stage to the canvas.
-
Drag a Write to Null stage to the canvas.
-
Create a channel between the two stages.
-
Double-click on the Read from DB stage to configure it
to read data from a table containing the test data.
-
In the General tab, in the
Connection field, select the database that
contains the test data.
-
Click Build SQL... to create the SQL query using
selected schema and tables from which to read the data.
Ensure the selected table has at least a 1000 records to allow optimum
test values.
-
In the Runtime tab, check the Fetch
size checkbox.
-
In the attached field, enter the number of records you want to read in
one instance.
The Spectrum Technology Platform has been tested to work optimally
with a Fetch size of up to 1000.
-
Click OK.
-
Save the job.
-
Run the job.
The Execution Details window opens.
-
Click Refresh.
-
Note the Started and Finished
times.
-
Repeat the steps 7 - 9, gradually increasing the fetch size to identify the
optimal setting for your server.
You now have identified the fetch size setting that provides the optimal
performance for your environment.
.