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.

6.4.3 Cumulative data versus non-cumulative key figures<br />

6.4.4 Areas of impact<br />

Important: Packages cannot be deleted from the E- fact table <strong>using</strong> a<br />

package ID. Ensure that packages in the F- fact table have been reviewed<br />

prior to compression, since deletion from the F- fact table is much simpler.<br />

There are two types of key figures in a fact table: cumulative key figures and<br />

non-cumulative key figures. If a cube has at least one non-cumulative key figure,<br />

it is called a non-cumulative cube. In the E- fact table, the data <strong>for</strong><br />

non-cumulative key figures is stored in separate records, which are called<br />

reference points and have their own package DIMID to distinguish them from<br />

common records.<br />

The E- fact table contains consolidated data from the F- fact table. For<br />

cumulative data, the key figure values are summed. For non-cumulative data, a<br />

function is applied to the key figures be<strong>for</strong>e the record is inserted in the E- fact<br />

table. Common functions include minimum value, maximum value, last value,<br />

and so on.<br />

► Non-cumulative key values get assigned a package ID different from 0 in the<br />

E- fact table when the record is moved from the F- fact table to the E- fact<br />

table. For non-cumulative key figures, an additional row (the reference point)<br />

is inserted or updated in the E- fact table that has the same combination of<br />

dimension IDs, except <strong>for</strong> the time and package dimension. Rather than<br />

requiring summing all delta values from the F- fact table, the E- fact table<br />

reference point can be accessed directly, thus improving query per<strong>for</strong>mance.<br />

► Cumulative key values get assigned a PID of 0 in the E- fact table. When a<br />

record in the F- fact table has the same key as a record already in the E- fact<br />

table a new record is not added to the E- fact table. Instead the cumulative<br />

key values <strong>for</strong> the record in the E- fact table are incremented by the value in<br />

the same record from the F- fact table.<br />

We recommend that <strong>SAP</strong> compression be implemented and updated on a<br />

regular basis (even if the ratio of compression appears to be insignificant) <strong>for</strong> the<br />

following reasons:<br />

► Storage impact<br />

– <strong>SAP</strong> compression may result in reduced data storage requirements.<br />

– Occasionally, no change will occur.<br />

98 <strong>Best</strong> <strong>Practices</strong> <strong>for</strong> <strong>SAP</strong> <strong>BI</strong> <strong>using</strong> <strong>DB2</strong> 9 <strong>for</strong> z/<strong>OS</strong>

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

Saved successfully!

Ooh no, something went wrong!