Re: Very slow joins - Mailing list pgsql-general

From MS
Subject Re: Very slow joins
Date
Msg-id a73bf5d5-3e7f-40ea-855b-8ec4e90ce0a9@e11g2000yqo.googlegroups.com
Whole thread Raw
In response to Re: Very slow joins  (MS <fretka1990@gmail.com>)
List 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


pgsql-general by date:

Previous
From: MS
Date:
Subject: Re: Very slow joins
Next
From: "Jamie Lawrence-Jenner"
Date:
Subject: Postgres and multiple updates in one statement