Re: reducing number of ANDs speeds up query

From: "T(dot) E(dot) Lawrence" <t(dot)e(dot)lawrence(at)icloud(dot)com>
To: Amit kapila <amit(dot)kapila(at)huawei(dot)com>
Cc: "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>
Subject: Re: reducing number of ANDs speeds up query
Date: 2013-01-12 11:38:13
Message-ID: F8051BE9-42A5-4641-811A-D2AA86136482@icloud.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 12.01.2013, at 07:10, Amit kapila <amit(dot)kapila(at)huawei(dot)com> wrote:
> You can try once with below query:
> Select * from (SELECT a.id,b.value FROM table_a a, table_b b WHERE ... AND ... ) X where X.value=...;
>
> If this doesn't work can you send the Explain .. output for both queries(the query you are using and the query I have suggested)
>
> With Regards,
> Amit Kapila.

Hi and thank you!

I will try this and let you know!

T.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message T. E. Lawrence 2013-01-12 11:41:32 Re: reducing number of ANDs speeds up query
Previous Message Eduardo Morras 2013-01-12 10:52:59 Re: reducing number of ANDs speeds up query