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

Statistics collection recommendations – Teradata 14.0 - comment by carrie

$
0
0

Hi Chris,
 
You don't really "set a table up" for stats collection, you just decide which stats you wish to collect and then build a script with collect stats statements for those columns or indexes and then run the script.   You can rerun the collect stats statements (using the same syntax as the initial collection if you wish) whenever you want to recollect stats for those columns or indexes.  Sometimes that is weekly, sometimes monthly, in some cases daily.  It depends on how much the table has grown since the previous collection.  
 
If you want to recollect statistics on all statistics that exist on a given table at the same time, you can simply issue a table-level statistics collection statement.
 
When performed individually, the statement to initially collect stats and to recollect stats is the same.  So you don't really need another script, but you could have another script if you only wanted to recollect a subset of the stats.
 
In 14.10 you can put your stats recollections under the control of the Automated Statistics Management feature.  I have another blog posting that describes that a little bit.  If you are using the Automated Stats Manager feature, you never have to issue scripts to recollect.
 
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>