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: Deadly sins againts database performance/scalability

Re: Deadly sins againts database performance/scalability

From: Alkos <azerty_at_nospam.org>
Date: Fri, 28 Nov 2003 10:43:29 +0100
Message-ID: <bq75c4$k3g3@news.rd.francetelecom.fr>

"Cris Carampa" <cris119_at_operamail.com> a écrit dans le message news: bq71jp$sq1$1_at_panco.nettuno.it...
> Marc Blum wrote:
>
> > (1)
> > SELECT DISTINCT ...
>
> Sorry for the naive question: what's wrong with SELECT DISTINCT?
>
> Kind regards,
>
> --
> Cris Carampa (spamto:cris119_at_operamail.com)
>
> "Poveri fanatici comunisti, noglobal e affetti dalla sindrome
> anti-microsoft" (gli utenti Linux secondo un poster di ICOD)
>

Most of the time, people use SELECT DISTINCT to get unique rows because they don't want to "bother" with the datamodel. They are lazy or hurried so they don't care about possible
keys, about WHERE clauses selectivity and all that kind of things so quick and dirty solution to be sure to get unique rows : SELECT DISTINCT which implies a sort therefore more activity to get the same result as they may have gotten quicker with a little bit work on the WHERE clause.

Alkos Received on Fri Nov 28 2003 - 03:43:29 CST

Original text of this message

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