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 goldminer

$
0
0

Hi Carrie,
In TD 13.10 and older, when collecting on multiple columns, the order of the columns in which the optimizer analyzed the demographics was determine not by the order of the collect statement (i.e collect stats on table collumn a,b), but rather the order in which the columns were defined in the table.  In other words, it is my understanding, that if the columns were ordered (b,a) but the stats statement read (a,b) they would still be collected in (b,a) order.  Again, it is my understanding that if the b column is 24 bytes long and the a column is 2 bytes long, it is best to define them in (a,b) order to get the best histogram based on the 16 byte limit.  Do I have this right for 13.10 and earlier releases?  My other question is.... if I have this right, does anything change in 14.0?  I vaguely remember someone telling me this would change in 14.0. 
Thanks,
Joe


Viewing all articles
Browse latest Browse all 1058

Trending Articles



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