19.06.2013 Views

DB2 UDB for z/OS Version 8 Performance Topics - IBM Redbooks

DB2 UDB for z/OS Version 8 Performance Topics - IBM Redbooks

DB2 UDB for z/OS Version 8 Performance Topics - IBM Redbooks

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Class 1 CPU time (MSEC)<br />

Multi-row Fetch support of DSNTIAUL<br />

(10,000 rows fetched / test)<br />

250<br />

200<br />

150<br />

100<br />

50<br />

0<br />

V7<br />

Figure 9-4 Multi-row fetch support of DSNTIAUL<br />

As shown on Figure 9-4, the default value <strong>for</strong> DSNTIAUL retrieves 100 rows per fetch. When<br />

you retrieve 1000 or 10000 rows, the CPU time stays almost the same.<br />

If you want to change the number of rows, the parameter can be specified together with the<br />

SQL parameter, as shown in Example 9-1.<br />

Example 9-1 DSNTIAUL with multi-row parameter<br />

//SYSTSIN DD *<br />

DSN SYSTEM(DSN)<br />

RUN PROGRAM(DSNTIAUL) PLAN(DSNTIB81) PARMS('SQL,250') -<br />

LIB(’DSN810.RUNLIB.LOAD’)<br />

...<br />

//SYSIN DD *<br />

LOCK TABLE DSN8810.PROJ IN SHARE MODE;<br />

SELECT * FROM DSN8810.PROJ;<br />

V8<br />

Runs with different number of<br />

rows in a FETCH call<br />

V8<br />

mr = 10 V8<br />

mr = 100<br />

V8 w/o MR : +20%<br />

V8 with MR : -30% to -50%<br />

V8<br />

mr=1000 V8<br />

mr=10000<br />

5 columns<br />

20 columns<br />

In Figure 9-5, we compare the per<strong>for</strong>mance of DSNTIAUL running under V7 and V8 in terms<br />

of CPU. Elapsed times are very similar.<br />

Chapter 9. Installation and migration 349

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!