Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> RE: Slow Views...
First I would think that the correct syntax for the hint would be /*+ RULE
rather than /* +RULE as posted, but I would stick to a cost based plan if at
all possible.
Have you tried to rewrite the query as pure SQL merging all the views and your code into one native SQL statement? Attempting to do this can help determine where the problem lies and expose techniques to eliminate the bottleneck.
IMHO -- Mark D Powell --
-----Original Message-----
From: oracle-l-bounce_at_freelists.org
[mailto:oracle-l-bounce_at_freelists.org]On Behalf Of Mitchell Baldwin
Sent: Friday, June 18, 2004 7:26 AM
To: oracle-l_at_freelists.org
Subject: Slow Views...
Hi All
I have a strange problem with some views on an 8.1.7 database (Solaris 8)
I have a top level view that unions 3 other views which is taking many minutes to return, but the SQL from the sub views is returning in a total of 20secs for all three queries.
Now the strange thing is the sub views are also going incredibly slow compared to the underlying SQL.
I have made sure all the joins are indexed and have analysed the explain plan, and its only doing index range scans.
I've also added the hint /* +RULE */ to stop hash joins.
I know there is an overhead for the views on views, but this seems a bit to much !..
TIA Mitch
FAQ is at http://www.freelists.org/help/fom-serve/cache/1.htmlput 'unsubscribe' in the subject line.
-----------------------------------------------------------------
----------------------------------------------------------------
Please see the official ORACLE-L FAQ: http://www.orafaq.com
----------------------------------------------------------------
To unsubscribe send email to: oracle-l-request_at_freelists.org
![]() |
![]() |