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: How to optimize query's execution?

Re: How to optimize query's execution?

From: <xhoster_at_gmail.com>
Date: 31 Aug 2005 15:08:47 GMT
Message-ID: <20050831110847.456$0L@newsreader.com>


"uf" <uf_at_one.com> wrote:
> > How many rows in j have currentstate='X'?
>
> 3390
>
> > How many rows have state='postponed'?
>
> 3390
>
> How many rows have both simultaneously?
>
> 3390
>
> > What fraction of the rows in k satisfy the in-list?
>
> all of 3390

How about on the whole table, even the parts not satisfying the join to j?

>
> > What column(s) (and in what order) are included in the my_state_idx
> > index?
>
> MY_STATE_IDX ----> MY_JSTATE.INTERNAL_ID
Are you sure? I can't understand why oracle would be doing a range scan on this index (as the driver of a nested loop) if that is all it contains. Anyway, is there another index which is on currentstate or state? If not, there probably should be.

Xho

-- 
-------------------- http://NewsReader.Com/ --------------------
Usenet Newsgroup Service                        $9.95/Month 30GB
Received on Wed Aug 31 2005 - 10:08:47 CDT

Original text of this message

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