If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > Java UDF performance trouble

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 12-07-06, 10:40
Navik Navik is offline
Registered User
 
Join Date: Dec 2006
Posts: 3
Question 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.getSubString(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
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On