pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Dan Langille <dan@langille.org>
To: wweng@kencast.com
Cc: pgsql-sql@postgresql.org
Subject: Re: How slow is DISTINCT?
Date: Wed, 27 Feb 2002 16:30:58 -0500
Message-ID: <200202272131.g1RLV7k94868@lists.unixathome.org> (raw)
In-Reply-To: <3C7D252A.3030608@kencast.com>

On 27 Feb 2002 at 13:27, Wei Weng wrote:

> I tend to use DISTINCT a lot in my queries to limit the repeated rows. Is
> that a good habbit?

If that's what you need, use it.

> How exactly slow is DISTINCT being processed in SQL engines? (not
> limited to postgresql, though comments on postgresql would be most
> relevant)

Try it.  Compare the same SQL with and without DISTINCT.
-- 
Dan Langille
The FreeBSD Diary - http://freebsddiary.org/ - practical examples




view thread (10+ messages)  latest in thread

Message-ID: <200202272131.g1RLV7k94868@lists.unixathome.org>
Permalink:  ../200202272131.g1RLV7k94868@lists.unixathome.org/
Also on:    postgresql.org/message-id/200202272131.g1RLV7k94868@lists.unixathome.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: dan@langille.org, wweng@kencast.com
  Subject: Re: How slow is DISTINCT?
  In-Reply-To: <200202272131.g1RLV7k94868@lists.unixathome.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox