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.

6.4.5 Conclusion<br />

Statistics Advisor tool<br />

This tool is a function of the new Visual Explain and it can help you cut down the ef<strong>for</strong>t in<br />

determining what kind of distribution statistics you need to run and set up the RUNSTATS<br />

control statements. For in<strong>for</strong>mation about the Statistics Advisor tool refer to 3.15.3, “Statistics<br />

Advisor” on page 116.<br />

V8 RUNSTATS with distribution statistics achieves a better per<strong>for</strong>mance compared to V7<br />

RUNSTATS and the DSTATS tool. You no longer need to run the separate DSTATS program<br />

to collect distribution statistics, in V8 RUNSTATS will do it and cut down CPU and elapsed<br />

time. Measurements show that increasing the number of columns or column groups to collect<br />

statistics may significantly impact CPU and elapsed time. However, access path<br />

improvements provided by distribution statistics can be quite remarkable.<br />

6.4.6 Recommendations<br />

6.5 Cross Loader<br />

To get good per<strong>for</strong>mance when using RUNSTATS distribution statistics in V8, it is important to<br />

be current with maintenance, apply the fixes <strong>for</strong> PQ90884 and PQ94147 (dynamic prepare).<br />

We also recommend you use the Statistics Advisor tool to define the right statistics <strong>for</strong> your<br />

application: The Statistics Advisor suggests what RUNSTATS and DSTATS are needed <strong>for</strong><br />

your queries. The CPU overhead observed when there are hundreds of frequency values in<br />

SYSCOLDIST can be reduced by deleting unnecessary in<strong>for</strong>mation from the catalog table.<br />

The Cross Loader function enables you to use a single LOAD job to transfer data from one<br />

location to another location or from one table to another table at the same location. You can<br />

use either a local server or any DRDA-compliant remote server as a data input source <strong>for</strong><br />

populating your tables. Your input can even come from other sources besides <strong>DB2</strong>; you can<br />

use <strong>IBM</strong> In<strong>for</strong>mation Integrator <strong>for</strong> access to data from other relational or non-relational data<br />

sources. For more in<strong>for</strong>mation abut the cross loader function of the LOAD utility, see <strong>DB2</strong><br />

<strong>UDB</strong> <strong>for</strong> z/<strong>OS</strong> <strong>Version</strong> 8 Utility Guide and Reference, SC18-7427.<br />

6.5.1 Per<strong>for</strong>mance APAR<br />

APAR PQ84160, opened on V7, has optimized the code reducing the path length by a large<br />

percentage. Prior to this fix, the cross loader took longer than the normal LOAD and UNLOAD<br />

utilities. With two times per<strong>for</strong>mance improvement provided by this rework, the cross loader is<br />

now at the same level as LOAD and UNLOAD in terms of per<strong>for</strong>mance.<br />

PTFs are available <strong>for</strong> both V7 and V8:<br />

► V7: UQ91416<br />

► V8: UQ91422<br />

280 <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>

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

Saved successfully!

Ooh no, something went wrong!