Loyd,

DISTINCT is a post result set operation. The initial result set is
created, then DISTINCT eliminates duplicate rows from that result set.
I doubt if it factors into the access plan...

-Eric DeLong

-----Original Message-----
From: midrange-l-bounces@xxxxxxxxxxxx
[mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of Loyd Goodbar
Sent: Monday, July 26, 2010 3:20 PM
To: Midrange Systems Technical Discussion
Subject: Re: Using an SQL index over DDS file?

Success!

Apparently DISTINCT and GROUP BY indeed act differently under the
covers,
because DISTINCT took ~60-90 seconds while GROUP BY was 100ms. VE
reports
using an index scan with the new index. Perhaps DISTINCT does not take
advantage of indexes? It seems unlikely.

Thanks everyone for the help and suggestions!

--Loyd

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.