Tagged articles
1 articles
Page 1 of 1
dbaplus Community
dbaplus Community
Oct 24, 2016 · Databases

Why Oracle’s AUTO_SAMPLE_SIZE Misses Skewed Data and How to Fix It

The article explains how Oracle’s default DBMS_STATS.AUTO_SAMPLE_SIZE can produce wildly inaccurate cardinality estimates on highly skewed columns, examines the NewDensity and OldDensity algorithms, demonstrates the problem with real‑world examples, and offers practical solutions such as forcing estimate_percent or disabling NewDensity.

Auto Sample SizeDBMS_STATSDatabase Optimization
0 likes · 10 min read
Why Oracle’s AUTO_SAMPLE_SIZE Misses Skewed Data and How to Fix It