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.

3.10.2 Conclusion<br />

100 Inserts activated trigger 100 times<br />

but WHEN condition evaluated to true only once<br />

0<br />

CPU non-nested CPU trigger<br />

.<br />

Figure 3-42 CPU time to invoke trigger but WHEN condition true once<br />

The measurements of execution of triggers show:<br />

► Saved work file usage<br />

► CPU saving <strong>for</strong> avoided work file allocation if the rows fit into the work space<br />

► Per<strong>for</strong>mance improvement depends on:<br />

– Complexity of triggering SQL<br />

– Complexity of SQL executed in the trigger<br />

– Number of times the triggers are invoked<br />

3.10.3 Recommendation<br />

You don’t need to do anything, not even REBIND, to have the per<strong>for</strong>mance benefit if you are<br />

using triggers that allocate work files.<br />

3.11 REXX support improvements<br />

CPU time - lower is better<br />

0.02<br />

0.015<br />

0.01<br />

0.005<br />

The per<strong>for</strong>mance of REXX programs accessing <strong>DB2</strong> tables is improved in V8 in the case of<br />

programs issuing large numbers of SQL statements.<br />

The improvement is due to two changes:<br />

► <strong>DB2</strong> V8 avoids loading and chaining control blocks <strong>for</strong> each REXX API invocation; they are<br />

now built only at initialization time and then pointed to <strong>for</strong> the successive API calls. This<br />

has reduced the CPU time.<br />

► The REXX exec points to the DSNREXX code. The change now loads the modules and<br />

keeps them in local application address space <strong>for</strong> the duration of the job whenever they<br />

have not been preloaded in LPA. This avoids accessing the modules again from disk. This<br />

90 <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 />

-8.3%<br />

-24%<br />

<strong>DB2</strong> V7<br />

<strong>DB2</strong> V8

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

Saved successfully!

Ooh no, something went wrong!