Quantcast
Channel: Teradata Forums - Database
Viewing all articles
Browse latest Browse all 14773

Nested OREPLACE leads to poor performance - forum topic by papgust

$
0
0

Hi,
I am using this condition in UPDATE and SELECT statements and to process this condition takes a lot of time. The column 'recall_string' (Varchar(2000)) is in a table of 100 million records.
Any suggestions to improve the performance of this condition?
 
WHERE
COALESCE(length(OREPLACE(OREPLACE(OREPLACE(OREPLACE(OREPLACE(OREPLACE(OREPLACE(OREPLACE(OREPLACE(OREPLACE(OREPLACE(PREV.recall_string,'0'),'1'),'2'),'3'),'4'),'5'),'6'),'7'),'8'),'9'),'-')),0) = 1
 
Thanks,
Pradeep

Forums: 

Viewing all articles
Browse latest Browse all 14773

Trending Articles