Re: Very slow joins

From: MS <fretka1990(at)gmail(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: Very slow joins
Date: 2009-07-27 11:36:58
Message-ID: a73bf5d5-3e7f-40ea-855b-8ec4e90ce0a9@e11g2000yqo.googlegroups.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

> postgres collect all necessary stats. Maybe an implicit analyze is
> necessary?

Should be: "explicit analyze".

> > > BUT I found the real cause of my problem - the "fk2" field from my
> > > example had not only an index, but it was also a foreign key to
> > > another table.
> > That seems unlikely to be the cause.

It's just what I saw. First I tried with all the FKs but had to break
the queries because they took too long.
Then I dropped the FK and the query run in a couple of minutes.

Thanks,
MS

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Raymond O'Donnell 2009-07-27 13:07:46 Re: Postgres and multiple updates in one statement
Previous Message MS 2009-07-27 11:20:39 Re: Very slow joins