|
|
Archives of the TeradataForum
Message Posted: Mon, 14 Feb 2005 @ 16:57:35 GMT
Subj: | | Re: Random Amp Sampling |
|
From: | | Dieter Noeth |
Anomy Anom wrote:
| I am executing explains on a much skewed table with no stats collected on it. As the parser would be doing *random* amp sampling should not
I be getting different estimates for every execution or does it sample from the amp that corresponds to the table id of the table to get
consistent explains? The document also says that an amp is chosen randomly. | |
It's not random, it's based on the (hashed) Table ID and the result is kept in the PE's cache (AFAIK up to 4 hours). So for a given table
always the same AMP is responsible to do that sampling. Even if you connect through different PEs the estimated numbers (and plans) are the
same.
Dieter
| |