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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Table structure<br />

of facttable<br />

Indices on F-facttable:<br />

Nonunique Compound Index ~P:<br />

( unique <strong>for</strong> APO cubes )<br />

Figure 2-11 Indices <strong>for</strong> fact tables<br />

Figure 2-11 shows the various indexes that are created <strong>for</strong> fact tables on the <strong>DB2</strong><br />

database. The P means packet-dimension, T stands <strong>for</strong> time dimension, and U<br />

stands <strong>for</strong> unit dimension. D1 and D2 are <strong>for</strong> dimension 1 and dimension 2,<br />

respectively, and kf is <strong>for</strong> keyfigure. So you see, there are some differences<br />

between the indexes <strong>for</strong> E and F- fact tables.<br />

dimensions Part. field Keyfigures<br />

P T U D1 D2 D3 D4 calmonth kf1 kf2 kf3<br />

Nonunique secondary indexes on every single dimension, except<br />

P and U. Not on T when partitioned<br />

P<br />

T D1 D2 D3 D4 U<br />

Without leading P, when partitioned: T D1 D2 D3 D4 U<br />

Indices on E-facttable:<br />

Unique Compound Index ~0:<br />

(as DPSI nonunique)<br />

Nonunique secondary indexes on every single<br />

dimension, except T and U. On P only <strong>for</strong><br />

noncumulative cubes<br />

T D1 D2 D3 D4<br />

T D1 D2 D3 D4 U<br />

P D1 D2 D3 D4<br />

+ These indices ensure a sufficient base per<strong>for</strong>mance<br />

+ Additional 2- or 3-column indexes in SE11 may give better per<strong>for</strong>mance <strong>for</strong> certain queries<br />

- Numeric index id (e.g. `800`): index is recreated like the default indices<br />

- Character index id (e.g. `X01`): index is not touched by the system<br />

+ the definition of the compound ~0 index on E-facttable within the DDIC differs from DB (different<br />

ordering of fields)<br />

+ the compound index on the F-facttable ~P is not defined in DDIC<br />

Chapter 2. Overview of <strong>SAP</strong> <strong>BI</strong> and related data 23<br />

P

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

Saved successfully!

Ooh no, something went wrong!