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

Home -> Community -> Mailing Lists -> Oracle-L -> Re: DBA_OBJECTS using Distinct Vs Group By

Re: DBA_OBJECTS using Distinct Vs Group By

From: Connor McDonald <mcdonald.connor_at_gmail.com>
Date: Thu, 22 Jun 2006 20:37:42 +0800
Message-ID: <5e3048620606220537t4f43dfa6wd4f7655de778319d@mail.gmail.com>


On 6/22/06, Deepak Sharma <sharmakdeep_oracle_at_yahoo.com> wrote:
>
> Any ideas why "GROUP BY" query is faster that
> "DISTINCT" in this query?
>
> SELECT OWNER FROM DBA_OBJECTS GROUP BY OWNER;
>
>
>

Without doing any real analysis on it, I'm guessing that the group by is getting benefit from the new "HASH GROUP BY" in 10g.

-- 
Connor McDonald
===========================
email: connor_mcdonald_at_yahoo.com
web:   http://www.oracledba.co.uk

"Semper in excremento, sole profundum qui variat"

--
http://www.freelists.org/webpage/oracle-l
Received on Thu Jun 22 2006 - 07:37:42 CDT

Original text of this message

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