Substr,LTrim,Rtrim making query run slow [message #377507] |
Tue, 23 December 2008 05:06 |
virmahi
Messages: 266 Registered: April 2008 Location: India
|
Senior Member |
|
|
Hi,
I have lots of queries where SUBSTR with TO_CHAR and trimming is used. And due to these functions the query is takng longer time to run. Please advice something on this as how can this be made faster.
update REQUEST SET REQUEST.INVOICE=NULL where REQUEST.ACCT_NUM LIKE '3%' AND REQUEST.COMMAND <> 'POST_AUTH' AND SUBSTRING(LTRIM(RTRIM(To_CHAR(INTRN_SEQ_NUM))),1,6) = LTRIM(RTRIM(REQUEST.INVOICE))
Regards,
Mahi
|
|
|
|
|
|