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: SQLServer beats 8i finding top-10 duplicates

Re: SQLServer beats 8i finding top-10 duplicates

From: Jonathan Lewis <jonathan_at_jlcomp.demon.co.uk>
Date: Sat, 8 Jan 2000 16:37:47 -0000
Message-ID: <947349642.1946.0.nnrp-07.9e984b29@news.demon.co.uk>


Interesting result Connor,
but I think you may have handicapped
Oracle somewhat. The original post says 1,000,000 integers, randomly distributed between 1 and 100,000.

Your result looks too flat to be truly
random. Since GROUP BY is strongly
affected by the density of sorted data, you may have given Oracle the worst
possibly sorting job to do.

It would be interesting to know what random function was used in the original post, or at least to know what the output was.

BTW - what did you set the sort area size and retained size to keep it all in memory ?

--

Jonathan Lewis
Yet another Oracle-related web site: http://www.jlcomp.demon.co.uk

Connor McDonald wrote in message <3876B811.383_at_yahoo.com>...

>SQL> select count(*) from testab
> 2 /
>
> COUNT(*)
>---------
> 999999
>
> real: 671
>
>SQL> select * from
> 2 ( select count(num) from testab group by num order by count(num)
>desc )
> 3 where rownum < 10
> 4
>SQL>
>SQL> /
>
>COUNT(NUM)
>----------
> 11
> 10
> 10
> 10
> 10
> 10
> 10
> 10
> 10
>
>9 rows selected.
>
> real: 20860
>
Received on Sat Jan 08 2000 - 10:37:47 CST

Original text of this message

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