|
Archives of the TeradataForumMessage Posted: Tue, 11 Dec 2007 @ 12:35:16 GMT
Dave's comments:
I observed the same as Dave (sometimes the theory fails). With respect to index versus column stats: I'd really like to believe that collecting column stats is just as good as index stats for single column indices; it would make life much easier -- we live in interesting times. On the bright side, I have observed that sampled stats on indices are just as good as the full sample version and take 2/3 the time to collect. I've also found that most NUSIs (built on the grounds of being a FK) are not used by the Optimizer. We ran a local test that tracked usage of 123 NUSIs on 7 large tables and found that only 33 were used in a test suite of 1700 queries. We also found that running the same set of 1700 queries against tables without NUSIs (that's right the big 0) only took 20% longer than the version with 123 NUSIs. A word of caution: the 1700 queries (IMHO) were biased toward table scanning (across wide swaths of time) rather than focused queries looking at a few days or a month of activity. We live in very interesting times. Rgrds, Bill Gregg
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||
Copyright 2016 - All Rights Reserved | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
Last Modified: 15 Jun 2023 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||