update xml eating up a lot of time [message #567340] |
Wed, 26 September 2012 16:20 |
ayush_anand
Messages: 417 Registered: November 2008
|
Senior Member |
|
|
update xml eating up a lot of time is there any way to tune
SELECT UPDATEXML(:B3 , '/FCUBS_RES_ENV/FCUBS_BODY/FLD/FN[@TYPE="' || :B2 ||
'"]', :B1 )
FROM
DUAL
call count cpu elapsed disk query current rows
------- ------ -------- ---------- ---------- ---------- ---------- ----------
Parse 1 0.00 0.00 0 0 0 0
Execute 499 0.44 0.90 0 3 0 0
Fetch 499 1.49 2.87 0 0 0 499
------- ------ -------- ---------- ---------- ---------- ---------- ----------
total 999 1.93 3.77 0 3 0 499
real code
SELECT updatexml(l_xml,
'/FCUBS_RES_ENV/FCUBS_BODY/FLD/FN[@TYPE="' ||
upper(replace(cspkes_misc.fn_getparam(p_parent_list,
l_parent_list_clob,
'Y',
l_cnt,
'>'),
'-',
'_')) || '"]/text()',
l_fn_str)
INTO l_xml
FROM dual;
|
|
|
|
|
|
Re: update xml eating up a lot of time [message #582873 is a reply to message #567340] |
Tue, 23 April 2013 03:22 |
|
Michel Cadot
Messages: 68728 Registered: March 2007 Location: Saint-Maur, France, https...
|
Senior Member Account Moderator |
|
|
@ayush_anand
XML functions and above UPDATE ones are long operations (especially if XML is quite big) but 3.77s for 499 rows does not seem a lot for me (7.5ms per row).
Regards
Michel
|
|
|