Java UDF performance trouble

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Navik
    New Member
    • Nov 2006
    • 4

    #1

    Java UDF performance trouble

    I need UDF which would parse one clob column MESSAGE + extract some data to fill some other columns in the same table.
    I will use 'generate as' feature for corresponding columns, where UDF to be called.

    For instance, the simplest case is the column, that just needs first 8 letters of MESSAGE.
    To test java UDF, i've used analog of LEFT(MESSAGE, 8) - which works fine - MESSAGE.getSubS tring(1, 8) and this java class also works, but VER-R-R-RY SLOWLY!
    Handling 4800 records took about 5minutes!!! It's intolerable.

    How may I increase its performance??

    P.S. DB2 version is 9.1.0.356
    Last edited by Navik; Dec 7 '06, 02:32 PM. Reason: Correction
Working...