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-47 Explain of the old consistency query 31<br />

Note: We are using a very small catalog, that is why the numbers are so small. But we want to give<br />

just an idea on how useful Visual Explain can be <strong>for</strong> tuning queries.<br />

If we click on the top node (1) QUERY, the attributes of the node QUERY appear on the left<br />

hand side window in<strong>for</strong>ming us that:<br />

► CPU cost (ms): 2<br />

► CPU cost (SU): 32<br />

► Cost category: A<br />

This in<strong>for</strong>mation is taken from the table DSN_STATEMNT_TABLE that has been updated by<br />

the EXPLAIN statement execution. The CPU cost in milliseconds is the cost in service units<br />

divided by the number of service units that the machine where <strong>DB2</strong> is running can do in one<br />

millisecond.<br />

The chart shows that this query has two query blocks. The first query block accesses the<br />

table SYSPLAN. If we click the node <strong>for</strong> table (6) SYSPLAN, the attributes of the table pop up<br />

in<strong>for</strong>ming us of:<br />

► Table Name: SYSPLAN<br />

► Creator Name: SYS<strong>IBM</strong><br />

► Correlation Name: PL<br />

► Cardinality: 61<br />

► Simple table space<br />

The attributes of the node appear on the left hand side of the graph showing as default the<br />

in<strong>for</strong>mation considered <strong>for</strong> cost estimation:<br />

► In<strong>for</strong>mation that appeared in the pop-up +<br />

► Qualifying rows: 14<br />

► Pages: 61<br />

114 <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!