Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Mailing Lists -> Oracle-L -> Re: Solved - RE: UTL_RAW and slowness
Awesome, Raj!
And thank you for sharing this with us.
> Read if you are interested ...
>
> Finally I got some time and luckily the largest message to use with
dbms_profiler. And the results shocked me .... dbms_profiler showed me that
instead of utl_raw, substr() was the culprit. Remember my operation is
character by character.
>
> After some long thinking and evaluating different techniques, I finally
decided that the delay was due to the fact that substr() operation was way
too slow to be included in my processing. As for alternatives, only thing I
could think was parallel processing and pipelined came to my mind ...
>
> So, I implemented a pipelined function that does nothing, but takes a CLOB
and returns me 1K chunks (using dbms_lob.read()) of it. I do this operation
in a cursor loop, so by the time I process 1k characters, next 1k is waiting
at the doorstep. Thus by parallelising the delay, I finally resolved the
problem.
>
> Thanks you all for your help, suggestion and hints which really got me
thinking. Plus having 9202 helped too otherwise it would have been difficult
(without pipelined function).
> Raj
> --------------------------------------------------------------------------
-- Please see the official ORACLE-L FAQ: http://www.orafaq.net -- Author: Arup Nanda INET: orarup_at_hotmail.com Fat City Network Services -- 858-538-5051 http://www.fatcity.com San Diego, California -- Mailing list and web hosting services --------------------------------------------------------------------- To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing).Received on Mon Oct 27 2003 - 16:29:25 CST