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

Home -> Community -> Usenet -> c.d.o.misc -> Re: Why DISTINCT is costly?

Re: Why DISTINCT is costly?

From: Chuck <skilover_nospam_at_softhome.net>
Date: Tue, 13 Sep 2005 11:04:11 -0400
Message-ID: <1126619673.7d1b5b2be285347000c35ef3622509d5@bubbanews>


Dan Koren wrote:

>
>
> And how else would one be able to
> eliminate duplicates without sort
> unique?

It should be able to be done with an index. Whether the optimizer will use the index to retrieve unique values without a SORT UNIQUE is another question. The few rudimentary tests I've run show that it doesn't. It still greatly improves the performance though since the index is scanned and not the table.

-- 
To reply by email remove "_nospam"
Received on Tue Sep 13 2005 - 10:04:11 CDT

Original text of this message

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