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: Composite index and data distribution

Re: Composite index and data distribution

From: Micha³ Kuratczyk <kura_at_lj.pl>
Date: Fri, 11 Aug 2006 13:15:53 +0200
Message-ID: <ebhsn7$7b1$1@mx1.internetia.pl>


Jonathan Lewis wrote:
> By giving rownum the alias rn, you've forced
> Oracle to instantiate the view. ROWNUM is
> evaluated before the "order by" is applied - that's
> the rule with ROWNUM, and you can't work
> around it. So Oracle has to acquire all the rows
> before "sorting" - so it can't push the predicate
> inside the order by, even though it manages
> to recognise that the sort is redundant.
That's right! Thanks a lot. I knew I had to do something wrong.

-- 
Michal Kuratczyk
Received on Fri Aug 11 2006 - 06:15:53 CDT

Original text of this message

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