Quantcast
Channel: Teradata Forums - Database
Viewing all articles
Browse latest Browse all 14773

Why explain plan is so off - response (2) by Qaisar Aftab Kiani

$
0
0

The optimizer doesn't always needs stats to give estimates. If full stats are collected and available, then the optimzer will give you realistic estimates, else if the full stats are not collected then the optimizer looks for the sample stats, if collected then optimizer uses them and the estimates will be close to actual one. If no stats are collected then the optimizer does the random amp sampling and gives out the estimates which could be close or way unrealistic. This could be ther reason your estimates are very unrealistic.
Collect the stats and then see the explain plan, which will give you a better picture.


Viewing all articles
Browse latest Browse all 14773

Trending Articles



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