Re: Assistance with Query Optimisation?

From: Shaun Johnston <shaunj(at)benon(dot)com>
To: Isak Hansen <isak(dot)hansen(at)gmail(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Assistance with Query Optimisation?
Date: 2007-03-01 23:37:30
Message-ID: 45E763BA.3060001@benon.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Isak Hansen wrote:
> First thing I notice is that your query plans seem to only use one index.
>
> Postgres should be able to combine the timestamp and account_id
> indexes in that first query, if the optimizer thought there was a
> point in doing so?
>
Absolutely brilliant - this solved my issue, brought the query time down
to about 2 seconds initially, then about 500 milliseconds thereafter.
Thank you very much for this tip.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Mariano Mara 2007-03-02 00:09:48 Re: supporting 2000 simultaneous connections.
Previous Message Merlin Moncure 2007-03-01 22:11:05 is pg_standby over nfs expected to work?