Quantcast
Channel: Teradata Developer Exchange - Blog activity for carrie's blog
Viewing all articles
Browse latest Browse all 1058

Statistics Threshold Functionality 101 - comment by carrie

$
0
0

Hi George,
 
Offhand, I don't know of a way to apply USING NO THRESHOLD to all the stats for a table.  You could turn off SysChangeThresholdOption if you don't want threshold to be applied to any stat systemwide, or you could turn DBQL USECOUNT logging for the database the table is part of.  If you turn off USECOUNT logging for the database, that will prevent the threshold feature from being considered for the entire database, not just one table though.  So that may be too large a scope for you.
 
Maybe there is way of automating the rescripting of the collect statistics statements for the table.  Once you specify USING NO THRESHOLD for one collection for one or all stats of a table, you can recollect at the table level and the optimizer will remember that specification and honor it for each stat where you previously specified it, without your having to repeat the using clause each time.   
 
If I can think of anything else you can do, I'll post another message.
 
Thanks, -Carrie


Viewing all articles
Browse latest Browse all 1058

Trending Articles



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