Re: 100% CPU Utilization when we run queries.

From: Scott Marlowe <scott(dot)marlowe(at)gmail(dot)com>
To: Tomas Vondra <tv(at)fuzzy(dot)cz>
Cc: pgsql-performance(at)postgresql(dot)org
Subject: Re: 100% CPU Utilization when we run queries.
Date: 2011-07-06 21:05:58
Message-ID: CAOR=d=3+jHB7Qqs9mpG--AKGRWb=VS6pCL82ao1n5=rqDFg9WA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

On Wed, Jul 6, 2011 at 1:04 PM, Tomas Vondra <tv(at)fuzzy(dot)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.

In response to

Browse pgsql-performance by date

  From Date Subject
Next Message Craig Ringer 2011-07-06 23:36:38 Re: 100% CPU Utilization when we run queries.
Previous Message Samuel Gendler 2011-07-06 20:01:39 Re: Query in 9.0.2 not using index in 9.0.0 works fine