Re: performance of IN (subquery) - Mailing list pgsql-general

From Kevin Murphy
Subject Re: performance of IN (subquery)
Date
Msg-id 200408270840.42087.murphy@genome.chop.edu
Whole thread Raw
In response to Re: performance of IN (subquery)  (Paul Tillotson <pntil@shentel.net>)
List pgsql-general
Thanks all for the reminders about analyzing, and I apologize for wasting
everyone's time.  The main table did indeed need to be analyzed (I had
truncated it and repopulated it with "insert ... select" but forgotten to
analyze).  The other tables are very small temporary tables, and I assumed,
whether correctly or not, that analyzing would not be helpful for them.

All this is happening in the context of an algorithm in a PL/PGSQL function.
The three temporary tables are reused thousands of times.  I wasn't sure if
it would be better to truncate them between uses to keep them small or just
allow them to grow.  Unfortunately for the Tree of Knowledge, performance is
now more than adequate, so I may not do this experiment.

Thanks,
Kevin Murphy

pgsql-general by date:

Previous
From: Joel
Date:
Subject: Re: UTF-8 and LIKE vs =
Next
From: Anton Melser
Date:
Subject: grid things and postgres