Re: Query runs slow

From: Hengky Liwandouw <hengkyliwandouw(at)gmail(dot)com>
To: Kevin Grittner <kgrittn(at)ymail(dot)com>
Cc: PostgreSQL general <pgsql-general(at)postgresql(dot)org>
Subject: Re: Query runs slow
Date: 2013-11-25 03:07:00
Message-ID: AF7B7D47-2619-490C-B967-2B5D37D63D4C@gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Dear Kevin,

After reading the link you gave to me, changing shared_buffers to 25% (512MB) of available RAM and effective_cache_size to 1500MB (about 75% of available RAM) make the query runs very fast. Postgres only need 1.8 second to display the result.

Thanks a lot !

On Nov 24, 2013, at 11:21 PM, Kevin Grittner wrote:

> Hengky Lie <hengkyliwandouw(at)gmail(dot)com> wrote:
>
>> this query takes long time to process. It takes around 48 seconds
>> to calculate about 690 thousand record.
>
>> Is there any way to make calculation faster ?
>
> Quite possibly -- that's about 70 microseconds per row, and even
> fairly complex queries can often do better than that. You didn't
> provide enough information to allow people to help you very
> effectively. Please read this page:
>
> http://wiki.postgresql.org/wiki/SlowQueryQuestions
>
> I suggest that you post to the pgsql-performance list with more
> detail, as suggested on that page.
>
> --
> Kevin Grittner
> EDB: http://www.enterprisedb.com
> The Enterprise PostgreSQL Company

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message slapo 2013-11-25 09:02:17 Re: [GENERAL] Puzzling table scan in a CTE
Previous Message Stephen Frost 2013-11-25 02:38:05 Re: GSSAPI authentication with AD