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.

V8 Star Join Access Path<br />

Figure 3-21 Star join access path<br />

Star join access path in <strong>DB2</strong> V8 had reduction in CPU time due to:<br />

► Improved star join cost estimation that better estimates the filtering effect of dimensions<br />

► Snowflake materialization occurs only if it is cost-effective<br />

► Updated star join detection logic, optimization and run-time processes<br />

► Use of in memory work files both in outside-in and inside-out join phases<br />

The measured CPU time <strong>for</strong> the top queries:<br />

► Query 3001: CPU time in V7 = 119 sec. and in V8 = 2.3 (reduction of 98%)<br />

► Query 3008: CPU time in V7 = 118 sec. and in V8 = 1 (reduction of 99%)<br />

► Query 3004: CPU time in V7 = 118 sec. and in V8 = 11 (reduction of 90%)<br />

► Query 3006: CPU time in V7 = 102 sec. and in V8 = 10 (reduction of 90%)<br />

In Memory Work File (IMWF) per<strong>for</strong>mance<br />

Measurements of the query workload submitted in single thread using various sizes of IMWF<br />

show:<br />

► 20 MB vs. no IMWF - Many queries have per<strong>for</strong>mance gain<br />

► 32 MB vs. 20 MB - Three more queries show improvement<br />

► 64 MB vs. 32 MB - One more query shows improvement<br />

► 128 MB vs. 64 MB - No per<strong>for</strong>mance gain<br />

Figure 3-22 shows the CPU time reduction with 64 MB IMWF when compared to no IMWF.<br />

The result indicates the effect of IMWF (comparison when IMWF is disabled and enabled) on<br />

all the other <strong>DB2</strong> V8 supported features. When IMWF is disabled, the traditional sparse<br />

indexes are used, with the same access path.<br />

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

CPU Time (s)<br />

140<br />

120<br />

100<br />

80<br />

60<br />

40<br />

20<br />

0<br />

2001 3001 3006 3008 2015<br />

2005 2010 2018 2014 3004<br />

QUERY NO<br />

V7<br />

V8

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

Saved successfully!

Ooh no, something went wrong!