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.

Time in Sec.<br />

DSTATS per<strong>for</strong>mance comparison<br />

180<br />

160<br />

140<br />

120<br />

100<br />

80<br />

60<br />

40<br />

20<br />

0<br />

V7 RUNSTATS +<br />

DSTATS tool<br />

Figure 6-5 Distribution statistics per<strong>for</strong>mance comparison<br />

V8 RUNSTATS with DSTATS<br />

(PQ90884 applied)<br />

Elapsed CPU<br />

DSTATS measurement with different number of columns<br />

As an additional study of the cost of RUNSTATS with distribution statistics, we have tested in<br />

both V7 and V8 (with PQ90884) several cases collecting distribution statistics of different<br />

numbers of columns or column groups. As a base, we measure simple RUNSTATS against a<br />

table, and then measure RUNSTATS against a table and all related indexes. After that, we<br />

collect distribution statistics against different numbers of columns and column groups. We use<br />

the same environment as the previous test case and the following is the column in<strong>for</strong>mation<br />

used <strong>for</strong> the distribution statistics:<br />

► 3 columns are non-indexed columns (used <strong>for</strong> statistics)<br />

► column1 cardinality=15104<br />

► column2 cardinality=24<br />

► column3 cardinality=41<br />

We have measured the following six test cases:<br />

1. RUNSTATS against one table<br />

2. RUNSTATS against one table and indexes<br />

3. RUNSTATS against one table and distribution statistics on one column<br />

4. RUNSTATS against one table and distribution statistics on one column group specifying 2<br />

columns<br />

5. RUNSTATS against one table and indexes, and distribution statistics on one column group<br />

specifying 2 columns<br />

6. RUNSTATS against one table, and distribution statistics on two column groups in which we<br />

specify 2 columns in the first column group and specify 1 column in the second column<br />

group.<br />

Table 6-3 shows the results of the test cases run in V7. From Case 3 to Case 6, we ran the<br />

RUNSTATS utility followed by the DSTATS tool. So class 1 elapsed and CPU time in these<br />

Chapter 6. Utilities 277

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

Saved successfully!

Ooh no, something went wrong!