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 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: DSNKSX01<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: U DECLARE UNIQ<br />

1 OF 5 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 LOCATION A VARCHAR N 128 N -1 0<br />

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

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

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

5 SEQNO A SMALLINT N 2 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 />

NOTE: NO ALTERNATIVE INDEXES AVAILABLE FOR THIS TABLE<br />

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

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

|Presently this query is only matching some of the indexed columns |<br />

|on this index key. Maximizing use of Stage 1 predicates against |<br />

|these index columns will improve per<strong>for</strong>mance, by matching and/or |<br />

|screening rows and there<strong>for</strong>e reducing data page I/O requirements. |<br />

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

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

|ANL7034I *** GOOD NEWS: |<br />

|This index is Not Padded, making it a true variable length index. |<br />

|"Index Only" access is now possible and <strong>DB2</strong> will compare CHAR and |<br />

|VARCHAR columns of unequal length against this index during Stage |<br />

|1 processing. |<br />

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

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

|ANL7009I *** GUIDELINE: |<br />

|On composite (multi-column) indexes, favor matching index scan of |<br />

|as many columns as possible, using Equals (=), Range (>,,

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

Saved successfully!

Ooh no, something went wrong!