DSNKFIND

Module DSNKFIND is used to search an index for a key value. It manages the page number of the key in the index.

Hints

Proportionally large amounts of time attributable to this module may indicate an index scan. Evaluate the application SQL using EXPLAIN. If MATCHCOLS is zero, a full index scan is performed. If MATCHCOLS is greater than zero, but less than the number of columns in the index, and the Index tree is used for access, then some number of leaf pages will be scanned forward to locate all qualifying RIDs.

Proportionally large amounts of time in this module also occurs when indexes are repetitively accessed with a high number of MATCHCOLS. If there is also a high amount of time attributed to DSNVSR for this statement, and the statement is not using an INDEX ONLY (column INDEXONLY is "N"), evaluate the possibility of replacing synchronous I/O with set processing.

For high volume insert activity, be sure that the inserted rows have been sorted into the sequence of the clustering index.

Reference Sources

IBM Db2 for OS/390, Messages and Codes, GC26-8979

IBM Db2 for OS/390, Application Programming and SQL Guide, SC26-8958

IBM Db2 for OS/390, Administration Guide, SC26-8957