Java Mailing List Archive

http://www.dba.5341.com/

Home » Home (12/2007) » oracle l »

Re: DBA_OBJECTS using Distinct Vs Group By

Connor McDonald

2006-06-22

Replies:



On 6/22/06, Deepak Sharma <sharmakdeep_oracle@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@yahoo.com
web:   http://www.oracledba.co.uk

"Semper in excremento, sole profundum qui variat"
©2008 dba.5341.com - Jax Systems, LLC, U.S.A.