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

Need URGENT help on Update SQL tuning - response (1) by dnoeth

$
0
0

There's too much code:
- You don't need COALESCE for comparison, as NULL always compares to unknown
- You don't need IS NULL in WHERE, this is automatically added by the optimizer
- Replace OREPLACE with OTRANSLATE (as CarlosAL already adviced in another thread)
- Replace LENGTH with the builtin CHAR_LENGTH
 
Seems some stats are missing, too, could you post the output of a HELP STATS visit;
And to see the actual resource usage you need access to the QueryLog (DBQL), in best case it's enbled on steplevel.
 
Dieter
 


Viewing all articles
Browse latest Browse all 14773

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>