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.

Figure 3-52 Saved queries<br />

We now execute the RUNSTATS (<strong>for</strong> large tables, running RUNSTATS in batch is best), and<br />

then rerun the SQL through SA to see if there are further suggestions.<br />

There are cases when one suggestion is not sufficient and you need to run the Statistics<br />

Advisor again to uncover another layer of problems.<br />

SA uses the existing statistics to make determinations about potential correlation and skew. If<br />

some columns have default statistics, then SA does not make any suggestions until the<br />

defaults are resolved. In this case, SA now suggests you collect frequency statistics on<br />

column SEX, as shown in Figure 3-53.<br />

Figure 3-53 New suggested RUNSTATS<br />

Chapter 3. SQL per<strong>for</strong>mance 119

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

Saved successfully!

Ooh no, something went wrong!