Re: 100% CPU Utilization when we run queries. - Mailing list pgsql-performance

From Scott Marlowe
Subject Re: 100% CPU Utilization when we run queries.
Date
Msg-id CAOR=d=3+jHB7Qqs9mpG--AKGRWb=VS6pCL82ao1n5=rqDFg9WA@mail.gmail.com
Whole thread Raw
In response to Re: 100% CPU Utilization when we run queries.  (Tomas Vondra <tv@fuzzy.cz>)
List pgsql-performance
On Wed, Jul 6, 2011 at 1:04 PM, Tomas Vondra <tv@fuzzy.cz> wrote:
> Dne 6.7.2011 15:30, bakkiya napsal(a):
>> Any help, please?
>
> According to the EXPLAIN ANALYZE output (please, don't post it to the
> mailing list directly - use something like explain.depesz.com, I've done
> that for you this time: http://explain.depesz.com/s/HMN), you're doing a
> UNIQUE over a lot of data (2 million rows, 1.5GB).

It might have been optimized lately, but generally unique is slower
than group by will be.

pgsql-performance by date:

Previous
From: Samuel Gendler
Date:
Subject: Re: Query in 9.0.2 not using index in 9.0.0 works fine
Next
From: Craig Ringer
Date:
Subject: Re: 100% CPU Utilization when we run queries.