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.

Important: After the initial compression of the F- fact table, ensure that<br />

RUNSTATS is run to maintain accurate statistics, as the E- fact table grows<br />

rapidly. The same applies as new partitions are populated.<br />

6.4.5 Implementing <strong>SAP</strong> compression<br />

Initially when you go live with new InfoCubes, it may be a good idea to wait a few<br />

weeks be<strong>for</strong>e deciding to compress regularly. As explained earlier, you could<br />

delete data from F- fact tables based on the package ID. So if you discover any<br />

data quality issues, you could reload the data after deleting one or more<br />

packages from the F- fact tables. Once you have solved all data quality issues,<br />

and you become confident with data loads, we recommend that you implement a<br />

periodic compression process.<br />

Since compression will be adding rows to the E- fact table, which may make it<br />

necessary to drop/rebuild indexes and run runstats on the large E- fact table, it<br />

can be beneficial to compress periodically (<strong>for</strong> example, weekly, bi-weekly)<br />

rather than daily. This can help to reduce the administrative impact of<br />

compression.<br />

6.4.6 Speed up compression of non-cumulative cubes<br />

For non-cumulative cubes, the most difficult part is the update of reference points<br />

due to lack of a full, qualifying index. <strong>SAP</strong> Note 919597 describes an important<br />

code change to speed up this update of reference points. The solution was to<br />

replace the correlated subselect by a materialization into a temp table, which is<br />

then joined by the update.<br />

6.4.7 <strong>Best</strong> practices <strong>for</strong> compressing large requests<br />

Some best practices <strong>for</strong> compressing large requests are:<br />

► Deletion of requests from an F- fact table is an expensive operation and often<br />

dominates elapsed time of compression. In order to speed up the deletion of<br />

requests:<br />

– Condense all requests.<br />

When all requests are condensed, the F- fact table can be deleted<br />

completely, which is the fastest way.<br />

Mass delete versus row deletion.<br />

Be aware that request-save rollup cannot utilize mass delete.<br />

100 <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!