Re: join on three tables is slow - Mailing list pgsql-sql

From Pavel Stehule
Subject Re: join on three tables is slow
Date
Msg-id 162867790712102200m2144573bw7447e0eff6720d55@mail.gmail.com
Whole thread Raw
In response to Re: join on three tables is slow  (Gerry Reno <greno@verizon.net>)
Responses Re: join on three tables is slow
List pgsql-sql
On 11/12/2007, Gerry Reno <greno@verizon.net> wrote:
> Ok, I've been playing around with this SQL some more and I found that if
> I remove this:
> e.active = '1'
> from the query that the query now completes in 5 seconds.  Nothing else
> has anywhere near the impact of this boolean condition.  So what is it
> about this boolean field that is causing so much delay?
>

send execution plan and we can see. Maybe you need a cast on every
row, because '1' is varchar. Try e.active  = true

Pavel

> Gerry
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 7: You can help support the PostgreSQL project by donating at
>
>                 http://www.postgresql.org/about/donate
>


pgsql-sql by date:

Previous
From: Richard Broersma Jr
Date:
Subject: Re: Insert Rule, Multiple Insert, Update Problem
Next
From: Gerry Reno
Date:
Subject: Re: join on three tables is slow