| Oracle FAQ | Your Portal to the Oracle Knowledge Grid | |
Home -> Community -> Usenet -> c.d.o.server -> Re: Performance problem with SQL query
Just in case anyone remembers and was interested; regarding newsgroup post
HKqz1B.J29_at_bath.ac.uk, Date 05-Sep-03, Title "Performance problem with SQL
query", author Mark.Wright_at_bristol.ac.uk; concerning terrible performance
(indexes not being used correctly) of queries of the form:
SELECT SUM(NVL(column,0))
FROM table_x
WHERE options blah
AND id IN (
SELECT *
FROM THE(
SELECT CAST(
function_x()
AS id_tab)
FROM dual)
);
This it turns out is now an unpublished bug/"feature" of Oracle versions
below 9.2.0.3. From:
http://metalink.oracle.com/metalink/plsql/ml2_gui.startup
Bug 2860984 Bad plan possible with collection iterator (table/Cast) This note gives a brief overview of bug 2860984. Affects:
Product (Component) Oracle Server (RDBMS)
Range of versions believed to be affected Versions < 10G
Versions confirmed as being affected
Platforms affected Generic (all / most platforms affected)
Fixed:
This issue is fixed in
Symptoms:
Related To:
Description
Unnesting of a subquery with a collection iterator may unnecessarily impose a join order which is inefficient resulting in a poor query time.
Needless to day, this is a major pain for us on 8i... Mark
--Received on Mon Oct 27 2003 - 05:41:11 CST
![]() |
![]() |