19.06.2013 Views

DB2 UDB for z/OS Version 8 Performance Topics - IBM Redbooks

DB2 UDB for z/OS Version 8 Performance Topics - IBM Redbooks

DB2 UDB for z/OS Version 8 Performance Topics - 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.

|This statement contains a Built in Column Function: however, it |<br />

|is not being processed at either Stage 1 Retrieval or Sort Time. |<br />

|In general, this means poor per<strong>for</strong>mance, because the column(s) get|<br />

|evaluated only at the end of Stage 2 processing. This might be due|<br />

|to multiple columns used, Group By, not all Stage 1 preds, etc. |<br />

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

ACCESS IS VIA THE CLUSTERING (INSERT & LOAD ORDER) INDEX FOR THIS TABLE<br />

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

|ANL5018W *** ALERT: |<br />

|This clustering (insert) index has a low cluster ratio (below 80) |<br />

|and/or is not well clustered (Clustered flag = N), meaning that |<br />

|inserts are following an unclustered pattern: this is not helpful.|<br />

|You should Reorganize your Table and Index, and re-run Runstats to|<br />

|update these statistics. That should result in better access paths|<br />

|and per<strong>for</strong>mance in general. |<br />

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

RANDOM MATCH IX SCAN<br />

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

IX CREATOR: SYS<strong>IBM</strong><br />

INDEX NAME: DSNKDX01<br />

VERS: 1 KEY LEN: -1 PADDED: N C-ED: N C-ING: Y CLURATIO: 10.0000<br />

FULLKEY CARD: 25 FIRSTKEY CARD: 25<br />

TYPE: 2 NLEAF PAGES: 34 NLEVELS: 2 UNIQUE: D DUPLICATE OK<br />

2 OF 4 COLUMNS ARE MATCHED CL<strong>OS</strong>E: N LOCK MODE: IS BPOOL: BP0<br />

KEY COLUMN NAME ORDER TYPE DIST LEN NULL COLCARD DIST#<br />

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

1 DLOCATION A VARCHAR N 128 N -1 0<br />

2 DCOLLID A VARCHAR N 128 N -1 0<br />

3 DNAME A VARCHAR N 128 N -1 0<br />

4 DCONTOKEN A CHAR N 8 N -1 0<br />

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

|ANL6052I *** NOTE: |<br />

|This index is specified as "Not Padded", allowing storage of a |<br />

|varying length index key. Padded indexes use blanks to fill out |<br />

|their fixed length keys and are not eligible <strong>for</strong> Index Only scan. |<br />

|"Not Padded" indexes do not blank fill CHAR and VARCHAR columns, |<br />

|allowing greater flexibility and better use of storage, packing |<br />

|more entries into a single Leaf page. Index Only access allowed. |<br />

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

ALTERNATIVE INDEX<br />

+++++++++++++++++<br />

CREATOR: SYS<strong>IBM</strong><br />

IX NAME: DSNKDX02<br />

VERS: 1 KEY LEN: -1 PADDED: N C-ED: N C-ING: N CLURATIO: 0.0000<br />

FULLKEY CARD: -1 FIRSTKEY CARD: -1<br />

TYPE: 2 NLEAF PAGES: -1 NLEVELS: -1 UNIQUE: D KEY COLS: 3<br />

1 A -1 BQUALIFIER<br />

2 A -1 BNAME<br />

3 A -1 BTYPE<br />

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

Appendix C. SQL PA sample reports 403

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

Saved successfully!

Ooh no, something went wrong!