DB2 - Problembeschreibung
Problem IC69509 | Status: Geschlossen |
Inaccurate NLEAF statistic for partitioned indexes of a partitioned table may lead to non-optimal access plans. | |
Produkt: | |
DB2 FOR LUW / DB2FORLUW / 970 - DB2 | |
Problembeschreibung: | |
Inaccurate NLEAF statistic for partitioned indexes of a partitioned table may lead to non-optimal access plans. With DB2 V9,7 indexes for a partitioned table can be created as partitioned or non-partitioned. For partitioned indexes, the NLEAF statistic may be inaccurate. For example, a table with the following per-partition statistics: select datapartitionid, numrids, nleaf from syscat.indexpartitions where tabschema='IC69509' and tabname='T1' DATAPARTITIONID NUMRIDS NLEAF --------------- -------------------- -------------------- 0 1000 334 1 2000 667 2 3000 1000 3 4000 1334 4 0 1 5 0 1 may have an NLEAF of 1: select nleaf from syscat.indexes where tabschema='IC69509' and tabname='T1' NLEAF -------------------- 1 An inaccurate NLEAF statistics can affect query performance from non-optimal access plans. | |
Problem-Zusammenfassung: | |
**************************************************************** * USERS AFFECTED: * * All users are affected * **************************************************************** * PROBLEM DESCRIPTION: * * Inaccurate NLEAF statistic for partitioned indexes of a * * * * partitioned table may lead to non-optimal access plans. * * * * * * * * With DB2 V9,7 indexes for a partitioned table can be created * * as * * partitioned or non-partitioned. For partitioned indexes, * * the * * NLEAF statistic may be inaccurate. For example, a table with * * the * * following per-partition statistics: * * * * * * * * select datapartitionid, numrids, nleaf from * * * * syscat.indexpartitions where tabschema='IC69509' and * * * * tabname='T1' * * * * * * * * DATAPARTITIONID NUMRIDS NLEAF * * * * --------------- -------------------- -------------------- * * * * 0 1000 334 * * * * 1 2000 667 * * * * 2 3000 1000 * * 3 4000 1334 * * 4 0 1 * * * * 5 0 1 * * * * * * * * * * * * may have an NLEAF of 1: * * * * * * * * select nleaf from syscat.indexes where tabschema='IC69509' * * and * * tabname='T1' * * * * * * * * NLEAF * * * * -------------------- * * * * 1 * * * * * * * * An inaccurate NLEAF statistics can affect query performance * * from * * non-optimal access plans. * **************************************************************** * RECOMMENDATION: * * Upgrade to DB2 version 9.7 FP3. * **************************************************************** | |
Local-Fix: | |
Manually update NLEAF of affected partitioned indexes to a more accurate value. In the example above, a more accurate NLEAF is the average of the non empty partitions: UPDATE SYSCAT.INDEXES SET NLEAF=834 where tabschema='IC69509' and tabname='T1'; | |
verfügbare FixPacks: | |
DB2 Version 9.7 Fix Pack 3 for Linux, UNIX, and Windows | |
Lösung | |
Defect has been fixed in DB2 v9.7 FP3. | |
Workaround | |
keiner bekannt / siehe Local-Fix | |
Bug-Verfolgung | |
Vorgänger : APAR is sysrouted TO one or more of the following: IC69696 Nachfolger : | |
Weitere Daten | |
Datum - Problem gemeldet : Datum - Problem geschlossen : Datum - der letzten Änderung: | 29.06.2010 27.09.2010 27.09.2010 |
Problem behoben ab folgender Versionen (IBM BugInfos) | |
9.7.FP3 | |
Problem behoben lt. FixList in der Version | |
9.7.0.3 | |
9.7.0.3 |