12 Dec 2013
Hi Aravind,
This link maybe old but it gives vivid explanation why indexes are used. Statistics are collected for the goal of performance. We need to be careful when we choose columns for collect stats.
http://developer.teradata.com/tools/articles/easy-statistics-recommendations-statistics-wizard-feature
Besides, there are other links from Carrie, you can get easily.
Cheers,
Raja
Raja K Thaw
My wiki: http://en.wikipedia.org/wiki/User:Kt_raj1
Street Children suffer not by their fault. We can help them if we want.
12 Dec 2013
Hi Tiger,
There are two recomnedations to collect multicolumn stats:
- When the columns are being used in condition or in join condition together
- When there is a NUSI defined comprising of multiple column
So whenever you know that some columns will be used in conditions together, you can collect stats.
Khurram
Hello all,
In which case we go for multi column stats .
when we have a clause where table1.id=table2.id1 and table1.flag=table2.flag1 -- here
we can seperately collect stats on flag and id. There is no need for multi column stats.
Could somebody explain for which data demographoics teradata cannot predict the column details and hence we go for multicolumn stats??
Thanks
Aravind