FYI: In cardinality estimation change

From: Riku Rsnen <>
Date: Thu, 24 Apr 2008 19:41:53 +0300 (EEST)
Message-ID: <>

Found interesting change, included in

From Note:5483301.8


"If a column has a frequency histogram and a query uses an equality predicate over the column looking for a value that does not exists in the histogram then the CBO was estimating a cardinality of 1. This could favor Nested Loops too much.

The fix introduces a notable change in behavior: instead of estimating a cardinality of 1 then with this fix CBO estimates a cardinality of (0.5 * the lowest cardinality found in the histogram). This can result in plan changes."

This issue has bitten me several times, mostly because of unnecessary histograms. Remains to be seen, if this really affects anything.

Riku Rsnen
Kantamestarit Oy

Received on Thu Apr 24 2008 - 11:41:53 CDT

Original text of this message