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

New opportunities for statistics collection in Teradata 14.0 - comment by carrie

$
0
0

If you want to collect statistics on the instance of a global temp table within your session, you would need to include the word TEMPORARY.  If you do not include TEMPORARY, then stats will be collected on the GTT definition that is in the data dictionary (which has no rows).  That will have no impact on your session's copy of the GTT.   If you collect on several columns on the GTT definition by omitting the word TEMPORARY, then later, when you have a session with an instance of that GTT you can collect stats by the GTT table name (using TEMPORARY) and all of the stats associated with the GTT definition will be included in the table level collection for that instance.
 
So if you only want to collect stats on your session's instance of the GTT, include the word TEMPORARY.   But if you want to set up a template for stats collection on multiple columns of the GTT to be available for all instances of this GTT, then omit the word TEMPORARY.  After collecting the column stats against the dictionary definition, then when a session is using an instance of the GTT you can collect stats (with TEMPORARY) at the table level and all those predefined stats will be collected for your session.
 
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>