From: Merlin Moncure <mmoncure@gmail.com>
To: Luckys <plpgsql@gmail.com>
Cc: pgsql-performance@postgresql.org
Subject: Re: how to tune this query.
Date: Fri, 7 Jul 2006 13:42:16 -0400
Message-ID: <b42b73150607071042w623615a9ucde3a17c1770c5b@mail.gmail.com> (raw)
In-Reply-To: <b80d582c0607040900i2e1aba6fy35c2acac27427202@mail.gmail.com>
References: <b80d582c0607040900i2e1aba6fy35c2acac27427202@mail.gmail.com>
On 7/4/06, Luckys <plpgsql@gmail.com> wrote:
>
> Hi all,
> I got this query, I'm having indexes for PropertyId and Dates columns across
> all the tables, but still it takes ages to get me the result. What indexes
> would be proposed on this, or I'm helpless?
>
I would suggest posting your table schemas and describe what you want
the results to look like. After years of following this list, I
regard your query as something of a classic. There simply has to be
an easier way of writing it.
merlin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-performance@postgresql.org
Cc: mmoncure@gmail.com, plpgsql@gmail.com
Subject: Re: how to tune this query.
In-Reply-To: <b42b73150607071042w623615a9ucde3a17c1770c5b@mail.gmail.com>
References: <b80d582c0607040900i2e1aba6fy35c2acac27427202@mail.gmail.com> <b42b73150607071042w623615a9ucde3a17c1770c5b@mail.gmail.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox