Archives of the TeradataForum
Message Posted: Sat, 22 Nov 2008 @ 18:22:34 GMT
Subj: | | Re: Stats collection on Index Column |
|
From: | | Michael Larkins |
Yes Lakhwant:
I agree with you on a UPI if for no other reason it shows the optimizer how many rows are in the table. This is especially important when you
have a very small table - ie. fewer rows than the number of AMPs.
I can sort of see your point regarding the USI. At the same time, if you have stats on the UPI then the optimizer has a count. Stats on the
USI (primary key columns of logical design) would be most valuable when the table has a NUPI in order to have a row count.
Regards,
Michael Larkins
Certified Teradata Master
Certified Teradata SQL Instructor
|