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.

|On composite (multi-column) indexes, collect correlated key stats |<br />

|on column pairings, as well as cardinality stats, like 2ndkeycard,|<br />

|3rdkeycard, etc., with Runstats. These additional statistics will |<br />

|allow <strong>DB2</strong> to make better filter estimates <strong>for</strong> Equality and Range |<br />

|and In List predicates, thereby selecting proper indexes and more |<br />

|realistic estimates <strong>for</strong> rows returned from the query (QCARD). |<br />

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

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

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

|Index Screening is now available <strong>for</strong> List Prefetch processing, |<br />

|which allows Random indexes to "screen" additional predicates |<br />

|after matching index scan, and be<strong>for</strong>e data access. |<br />

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

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

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

|This index is presently designated as allowing "duplicate values".|<br />

|Make sure this is a nonunique index that does not fall into one of|<br />

|the following "unique" categories: explicitly unique, primary key,|<br />

|non-primary RI parent key, unique where not null, unique column |<br />

|constraint. Unique indexes have definite advantages whenever they |<br />

|can be declared by the user, so be sure it contains duplicates. |<br />

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

THIS IS AN "INDEX ONLY" ACCESS: NO DATA PAGES ARE READ FROM THE TABLE<br />

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

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

|Collecting Non-uni<strong>for</strong>m column statistics greatly enhance the <strong>DB2</strong> |<br />

|Optimizer accuracy when processing Equals and In (List) preds. |<br />

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

THIS TABLE IS JOINED WITH THE PRIOR TABLE VIA THE "NESTED LOOP" METHOD.<br />

THIS IS THE INNER TABLE IN THE NESTED LOOP JOIN.<br />

THIS IS A CARTESIAN JOIN, ALL ROWS TO ALL ROWS, NO JOIN PREDICATE.<br />

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

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

|Only the Nested Loop join method supports the use of non-Equijoin |<br />

|predicates (T1.C1

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

Saved successfully!

Ooh no, something went wrong!