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.

| DDL time(___8): .........4 milliseconds<br />

| sql:<br />

| COMMIT WORK<br />

| DDL time(___9): .........4 milliseconds<br />

| sql:<br />

| DELETE FROM DDSTORAGE<br />

| WHERE DBSYSABBR = '<strong>DB2</strong>'<br />

| AND TABNAME = '/<strong>BI</strong>C/ADSOTEST00'<br />

| AND INDEXNAME = ''<br />

| DDL time(___10): .........3 milliseconds<br />

| sql:<br />

| COMMIT WORK<br />

| DDL time(___11): .........2 milliseconds<br />

| Request <strong>for</strong> /<strong>BI</strong>C/ADSOTEST00 executed successfully<br />

----------------------------------------------------------------------<br />

The CREATE INDEX statement has the VALUES clause to determine the<br />

partitions. As a result of executing this DDL:<br />

► Table /<strong>BI</strong>C/ADSOTEST00 is a partitioned table.<br />

► Index /<strong>BI</strong>C/ADSOTEST00~01 is a partitioned index — and it is also a<br />

partitioning index.<br />

► Index /<strong>BI</strong>C/ADSOTEST00~0 is a non-partitioned primary index.<br />

We do not recommend <strong>using</strong> index-controlled partitioning. Table-controlled<br />

partitioning is the recommended method, because it provides more support and<br />

flexibility <strong>for</strong> partitioning tables and indexes.<br />

7.5 <strong>DB2</strong> compression<br />

Since DataStore objects tend to be large (especially the active DataStore object<br />

data, the /<strong>BI</strong>C/A00 table), we recommend <strong>using</strong> <strong>DB2</strong><br />

compression <strong>for</strong> these objects. There are several benefits to <strong>using</strong> <strong>DB2</strong><br />

compression, especially in the area of data management.<br />

However, <strong>DB2</strong> compression can also improve query per<strong>for</strong>mance on queries that<br />

retrieve a large number of rows, like typical queries on DataStore objects. When<br />

the data is compressed, more rows fit on a page. There<strong>for</strong>e, more rows can fit<br />

into the bufferpools providing a better buffer hit ratio and more rows can be<br />

retrieved with less I/O.<br />

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