07.02.2013 Views

Best Practices for SAP BI using DB2 9 for z/OS - IBM Redbooks

Best Practices for SAP BI using DB2 9 for z/OS - IBM Redbooks

Best Practices for SAP BI using DB2 9 for z/OS - 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.

<strong>DB2</strong> V9 Dynamic Index ANDing<br />

� Dynamic Index ANDing – Fact table access<br />

–Filtering may not be (truly) known until runtime<br />

RID<br />

list 2<br />

RID<br />

list 2/3<br />

RID<br />

list 3<br />

RID list<br />

2/3/4<br />

RID<br />

list 4<br />

Figure 4-3 Building the final RID list be<strong>for</strong>e E- fact table access<br />

The final fact table RIDs are used to retrieve data from fact table and join back to<br />

dimension table as necessary <strong>for</strong> obtaining data from dimension tables.<br />

To summarize, the pair-wise join has the following characteristics:<br />

1. Joins each dimension table with a fact table through an index independently<br />

2. Per<strong>for</strong>ms RID Sort and RID Merge (ANDing) of the RID lists obtained from<br />

step 1 to <strong>for</strong>m the final fact table RID list<br />

3. Fetches data from the fact table <strong>using</strong> the final RID list<br />

4. Joins back the dimension table only if it has select out column from dimension<br />

tables<br />

4.2 Database statistics <strong>for</strong> <strong>BI</strong> tables<br />

Remaining RID lists are<br />

“ANDed” (intersected)<br />

Final RID list used <strong>for</strong> parallel fact table<br />

(and remaining dimension) access<br />

© 2006 <strong>IBM</strong> Corporation<br />

Processing RUNSTATS <strong>for</strong> <strong>BI</strong> tables and histogram statistics is a newly<br />

introduced feature that can help you manage per<strong>for</strong>mance of your environment.<br />

Chapter 4. Benefits of <strong>DB2</strong> 9 <strong>for</strong> <strong>SAP</strong> <strong>BI</strong> 39

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

Saved successfully!

Ooh no, something went wrong!