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.3.4 Per<strong>for</strong>mance<br />

Sparse index <strong>for</strong> star join<br />

100 500 15,000,000 600 30,000<br />

Time<br />

NLJ<br />

Store<br />

NLJ<br />

Fact<br />

NLJ<br />

Prod<br />

NLJ<br />

Custmr ...<br />

Fact table index<br />

(Time,Store,...)<br />

Outside-in phase<br />

Figure 3-19 Sparse index <strong>for</strong> star join<br />

The best per<strong>for</strong>mance can be obtained if the buffer pool <strong>for</strong> the work files has enough space<br />

to hold the snowflake work files on which the 'T' access in PLAN_TABLE is used.<br />

Per<strong>for</strong>mance measurements show benefits in queries from different workloads as result of the<br />

usage of the features described be<strong>for</strong>e.<br />

Sparse index per<strong>for</strong>mance<br />

Figure 3-20 summarizes the <strong>DB2</strong> V7 measurements with (APAR PQ61458) and without<br />

sparse indexes (SI) in different queries from two workloads.<br />

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

Inside-out phase<br />

Access through sparse index<br />

Fast scan of workfile<br />

to avoid sort of the<br />

composites

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

Saved successfully!

Ooh no, something went wrong!