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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

From these measurements we observe that DSNTEP2 under V8 uses 3% more CPU than<br />

DSNTEP2 under V7. DSNTEP4, by exploiting multi-row fetch, uses 10 to 30% less CPU<br />

depending on the number of rows specified.<br />

Class 1 CPU time (MSEC)<br />

1200<br />

800<br />

400<br />

0<br />

DSNTIAUL<br />

5 columns 20 columns<br />

DSNTIAUL is a sample assembler unload program. With <strong>DB2</strong> V8, it has been enhanced to:<br />

► Handle SQL statements up to 2 MB in size<br />

► Use multi-row FETCH<br />

You can specify an additional invocation parameter called “number of rows per fetch”. It<br />

indicates the number of rows per fetch that DSNTIAUL is to retrieve. You can specify a<br />

number from 1 to 32,767.<br />

In Figure 9-4 we show the impact of using multi-row fetch in V8, vs. single row fetch in V7, <strong>for</strong><br />

5 and <strong>for</strong> 20 columns. In this test, on average, the DSNTIAUL improvement is 40%.<br />

348 <strong>DB2</strong> <strong>UDB</strong> <strong>for</strong> z/<strong>OS</strong> <strong>Version</strong> 8 Per<strong>for</strong>mance <strong>Topics</strong><br />

Multi-row Fetch support of DSNTEP4<br />

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

293<br />

937<br />

301<br />

955<br />

190<br />

846<br />

V7<br />

V8<br />

DSNTEP2<br />

V8<br />

DSNTEP2<br />

DSNTEP4<br />

Figure 9-3 Multi-row fetch support of DSNTEP4<br />

V8 DSNTEP4 :<br />

automatic exploitation of<br />

MR Fetch<br />

default MR=100 rows<br />

10% to 35% CPU time<br />

reduction vs. V7 DSNTEP2<br />

V8 DSNTEP2 :<br />

w/o MR exploitation<br />

within 3% CPU time<br />

regression vs. V7 DSNTEP2

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

Saved successfully!

Ooh no, something went wrong!