Re: reducing number of ANDs speeds up query - Mailing list pgsql-general

From T. E. Lawrence
Subject Re: reducing number of ANDs speeds up query
Date
Msg-id F8051BE9-42A5-4641-811A-D2AA86136482@icloud.com
Whole thread Raw
In response to Re: reducing number of ANDs speeds up query  (Amit kapila <amit.kapila@huawei.com>)
List pgsql-general
On 12.01.2013, at 07:10, Amit kapila <amit.kapila@huawei.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.


pgsql-general by date:

Previous
From: Eduardo Morras
Date:
Subject: Re: reducing number of ANDs speeds up query
Next
From: "T. E. Lawrence"
Date:
Subject: Re: reducing number of ANDs speeds up query