Re: join on three tables is slow
От | Pavel Stehule |
---|---|
Тема | Re: join on three tables is slow |
Дата | |
Msg-id | 162867790712102200m2144573bw7447e0eff6720d55@mail.gmail.com обсуждение исходный текст |
Ответ на | Re: join on three tables is slow (Gerry Reno <greno@verizon.net>) |
Ответы |
Re: join on three tables is slow
|
Список | 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 по дате отправления: