Re: How slow is distinct - 2nd

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Michael Contzen" <Michael(dot)Contzen(at)dohle(dot)com>
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: How slow is distinct - 2nd
Date: 2002-10-04 14:44:48
Message-ID: 20689.1033742688@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

"Michael Contzen" <Michael(dot)Contzen(at)dohle(dot)com> writes:
> [ select distinct takes a long time on 7+ million rows ]

What do you have sort_mem set to? The default value is mighty small,
and that would translate directly to poor performance in DISTINCT.

Still though, the speed differential against Oracle is surprising,
given that they don't seem to be using a fundamentally different
implementation. Time to get out the profiler ...

regards, tom lane

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Oleg Bartunov 2002-10-04 15:05:55 Re: rows in order
Previous Message Tom Lane 2002-10-04 14:24:47 Re: Rule creation