DB2 - Problembeschreibung
Problem IC97009 | Status: Geschlossen |
DB2 NOT GENERATING TBSCAN ON INNER OF NLJN WHEN OUTER CAN HAVE ONLY 1 ROW | |
Produkt: | |
DB2 FOR LUW / DB2FORLUW / A50 - DB2 | |
Problembeschreibung: | |
After upgrading to DB2 v9.7, a query may have poorer performance when an Index Scan (IXSCAN), Fetch with an Index Scan (FETCH/IXSCAN), or Table Queue / Table Scan (TQ/TBSCAN) is used instead of a direct TBSCAN on the inner of a Nested Loop Join (NLJOIN), when the outer of the Nested Loop Join can generate only a single row. In order to determine if you are encoutering this issue, the Query Execution Plan needs to be examined. The QEP can be generating using the DB2 Explain facility (db2exfmt), or DB2 Optim Query Tuner / Graphical Explain. Ideally, the QEP from the previous version of DB2 would also be available. Examin the explain using the following steps: 1) Locate any Nested Loop Joins (NLJOIN) 2) Examine the outer / left leg of the NLJOIN, to determine if the cardinality of that portion of the plan can generate only a single row. - Plans that use a Group By, GENROW, or a fully qualified primary key access are most likely to generate only a single row 3) Examine the inner of the NLJOIN. If the inner portion of the plan uses an IXSCAN, FETCH/IXSCAN, or a TQ, then you may be experiencing this problem: - if the IXSCAN, FETCH/IXSCAN or TQ with any of an IXSCAN, FETCH/IXSCAN or TBSCAN, result in scanning the entire inner table, or almost the entire inner table - A FETCH/IXSCAN or TQ/FETCH/IXSCAN is used, and the index is very poorly clustered (cr, or cf are less then approx 20% - 50%) - If you have access to a plan from the previous version of DB2, and you find a TBSCAN on the inner of this NLJOIN, and the outer used a TQ to send the single row to the TBSCAN. If the above conditions are met, then it is likely you are experiencing the issue addressed by this APAR fix. This APAR fix will allow the Table Scan (TBSCAN) to be generated on the inner of the Nested Loop Join (NLJOIN) when the outer only produces a single row. | |
Problem-Zusammenfassung: | |
**************************************************************** * USERS AFFECTED: * * DB2 UDB DPF customers * **************************************************************** * PROBLEM DESCRIPTION: * * See Error Description * **************************************************************** * RECOMMENDATION: * * DPF customers experiencing this issue should upgrade to DB2 * * Cancun Release 10.5.0.4 * **************************************************************** | |
Local-Fix: | |
verfügbare FixPacks: | |
DB2 Cancun Release 10.5.0.4 (also known as Fix Pack 4) for Linux, UNIX, and Windows | |
Lösung | |
In DB2 Cancun Release 10.5.0.4 the optimizer will properly plan the partitioning of the data and send the smaller relation to the larger relation. | |
Workaround | |
keiner bekannt / siehe Local-Fix | |
Weitere Daten | |
Datum - Problem gemeldet : Datum - Problem geschlossen : Datum - der letzten Änderung: | 18.10.2013 06.10.2014 06.10.2014 |
Problem behoben ab folgender Versionen (IBM BugInfos) | |
Problem behoben lt. FixList in der Version | |
10.5.0.4 |