Home » RDBMS Server » Performance Tuning » Performance question (Oracle9.2.0.3)
Performance question [message #411834] Tue, 07 July 2009 02:00 Go to next message
Olivia
Messages: 519
Registered: June 2008
Senior Member
WHERE B.k1 = D.k1
AND D.k2 = E.K3
AND E.eff_date >= A.eff_date

In this case, table E joins to both table D and table A, however the join to table A is a range operator (>=). It may seem obvious that table E should be joined after table D, but this is exactly the sort of case where Oracle can mess up.

Why?
Re: Performance question [message #411850 is a reply to message #411834] Tue, 07 July 2009 02:42 Go to previous messageGo to next message
Michel Cadot
Messages: 68716
Registered: March 2007
Location: Saint-Maur, France, https...
Senior Member
Account Moderator
Why what?

Regards
Michel
Re: Performance question [message #412039 is a reply to message #411834] Tue, 07 July 2009 08:52 Go to previous messageGo to next message
JRowbottom
Messages: 5933
Registered: June 2006
Location: Sunny North Yorkshire, ho...
Senior Member
That's why up to date statistics are important.
Re: Performance question [message #412530 is a reply to message #411834] Thu, 09 July 2009 15:40 Go to previous message
coleing
Messages: 213
Registered: February 2008
Senior Member
Update your STATS first(especially histogram data on this kind of situation) - maybe even delete existing stats and re-gather.

Sometimes Oracle can still get it wrong though - in which case you can look at the ORDERED hint to help you out.
Previous Topic: SYSTEM TS is increasing
Next Topic: Redo Size doesn't increase more than 260MB
Goto Forum:
  


Current Time: Mon Nov 25 16:53:50 CST 2024