Database Tuning (MOSC)

MOSC Banner

Join cardinality estimate is off, help wanted.

edited Sep 8, 2012 5:31PM in Database Tuning (MOSC) 14 commentsAnswered
Hello all

I have a query with several inner joins of views which themselves include inner joins. The query works, but the execution plans selected are often suboptimal. This happens because the optimizer estimates the join cardinality wrongly. Typically the estimates suggest 50000 rows where in actuality there will be 5 million rows. The join conditions are on the primary/foreign-keys which consist of 2 columns each. The statistics on the tables are fresh and fine, which can be seen in the accurate estimates on how many rows will be delivered from each table. I have defines a stats-extension on the combination of

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center