Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: Oracle 8i and poor query performance in some queries

Re: Oracle 8i and poor query performance in some queries

From: Heikki Siltala <heikki.siltala_at_stakes.fi>
Date: 22 Oct 2003 00:31:30 -0700
Message-ID: <26e49b9f.0310212331.b261d7b@posting.google.com>


"Noel" <tbal_at_go2.pl> wrote in message news:<bn3dah$jso$1_at_inews.gazeta.pl>...

> Does:
> select id from a1
> minus
> select id from a2;
> takes so much time, eigher??

Tried this one:

select count(*) from (
select id from a1
 minus
select id from a2
);

It executes in 0,08 seconds! And the row counts in plan seem more realistic now. The total cost is 560, compared to earlier 109, but the query executes 25212,5 times faster than the earlier one. Quite a peformance gain!

Now the problem seems to be an optimizer problem.

--
Heikki
Received on Wed Oct 22 2003 - 02:31:30 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US