Re: Repeated Query is much slower in PostgreSQL8.2.4 than DB2 9.1

From: Mike Ivanov <mikei(at)activestate(dot)com>
To: ning <mailxiening(at)gmail(dot)com>
Cc: Craig Ringer <craig(at)postnewspapers(dot)com(dot)au>, pgsql-performance(at)postgresql(dot)org
Subject: Re: Repeated Query is much slower in PostgreSQL8.2.4 than DB2 9.1
Date: 2009-07-15 22:37:56
Message-ID: 4A5E5A44.5040503@activestate.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

ning wrote:
> The log is really long,

Which usually signals a problem with the query.

> but I compared the result of "explain analyze"
> for first and later executions, except for 3 "time=XXX" numbers, they
> are identical.
>

They are supposed to be identical unless something is really badly broken.

> I agree with you that PostgreSQL is doing different level of caching,
> I just wonder if there is any way to speed up PostgreSQL in this
> scenario,
>

This is what EXPLAIN ANALYZE for. Could you post the results please?

Cheers,
Mike

In response to

Responses

Browse pgsql-performance by date

  From Date Subject
Next Message Andres Freund 2009-07-15 22:51:54 Re: Repeated Query is much slower in PostgreSQL8.2.4 than DB2 9.1
Previous Message Wayne Conrad 2009-07-15 22:03:50 Re: Poor overall performance unless regular VACUUM FULL