Oracle statistics and histograms: why the CBO's plan changes when you gather stats
A precise look at how Oracle's cost-based optimizer uses statistics and histograms to estimate cardinality, and why gathering — or mis-gathering — stats changes every plan downstream.




