home clear 64x64
en blue 200x116 de orange 200x116 info letter User
suche 36x36
Neueste VersionenFixList
11.1.0.7 FixList
10.5.0.9 FixList
10.1.0.6 FixList
9.8.0.5 FixList
9.7.0.11 FixList
9.5.0.10 FixList
9.1.0.12 FixList
Haben Sie Probleme? - Kontaktieren Sie uns.
Kostenlos registrieren anmeldung-x26
Kontaktformular kontakt-x26

DB2 - Problembeschreibung

Problem IC69569 Status: Geschlossen

SELECT QUERIES USING UDF IN CONJUNCTION WITH ORDER BY DO NOT PARALLELIZE
WELL IN DPF

Produkt:
DB2 FOR LUW / DB2FORLUW / 970 - DB2
Problembeschreibung:
Select queries which use external scalar UDF in conjunction with 
the ORDER BY clause do not parallelize well in DPF and lead to 
bad performance. 
To benefit from the optimization the following conditions must 
be satisfied: 
1. The environment must be DPF. 
2. There must be a order by clause declared on the outer most 
select. 
3. The select must have a reference to an external scalar UDF. 
4. The UDF must not be non-deterministic, perform external 
action or have a scratchpad. 
 
eg. 
select CD_DEMO_SK, PROMO(CD_DEP_COUNT,CD_PURCHASE_ESTIMATE) as 
UDF 
from T1 
ORDER BY CD_DEMO_SK; 
 
In the SQL example above "CD_DEMO_SK" is Primary Key and PROMO 
is an external UDF.
Problem-Zusammenfassung:
Local-Fix:
rewrite the above query as: 
select temp.CD_DEMO_SK, temp.UDF FROM ( 
      select CD_DEMO_SK, 
PROMO(CD_DEP_COUNT,CD_PURCHASE_ESTIMATE) as UDF from T1) as temp 
ORDER BY temp.CD_DEMO_SK;
verfügbare FixPacks:
DB2 Version 9.7 Fix Pack 3 for Linux, UNIX, and Windows
DB2 Version 9.7 Fix Pack 3a for Linux, UNIX, and Windows
DB2 Version 9.7 Fix Pack 4 for Linux, UNIX, and Windows
DB2 Version 9.7 Fix Pack 5 for Linux, UNIX, and Windows
DB2 Version 9.7 Fix Pack 6 for Linux, UNIX, and Windows
DB2 Version 9.7 Fix Pack 7 for Linux, UNIX, and Windows
DB2 Version 9.7 Fix Pack 8 for Linux, UNIX, and Windows
DB2 Version 9.7 Fix Pack 9 for Linux, UNIX, and Windows
DB2 Version 9.7 Fix Pack 9a for Linux, UNIX, and Windows
DB2 Version 9.7 Fix Pack 10 for Linux, UNIX, and Windows

Lösung
Workaround
keiner bekannt / siehe Local-Fix
Kommentar
N/A
Weitere Daten
Datum - Problem gemeldet    :
Datum - Problem geschlossen :
Datum - der letzten Änderung:
30.06.2010
23.09.2010
23.09.2010
Problem behoben ab folgender Versionen (IBM BugInfos)
Problem behoben lt. FixList in der Version
9.7.0.3 FixList
9.7.0.3 FixList