Re: Query 4-5 times slower after ANALYZE

From: Gregory Stark <stark(at)enterprisedb(dot)com>
To: tv(at)fuzzy(dot)cz
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Query 4-5 times slower after ANALYZE
Date: 2009-03-18 13:35:23
Message-ID: 87mybjdkdg.fsf@oxford.xeocode.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general


Oh, the other thing you could try experimenting with are these two parameters.

Your query has *way* more tables than the default values for these so you
would have to raise them substantially. Given that the query was running in
30s you may find that this increases the planning time by more time than it
saves in the query -- the reason these limits exist at all..

geqo_threshold
join_collapse_limit
from_collapse_limit

--
Gregory Stark
EnterpriseDB http://www.enterprisedb.com
Ask me about EnterpriseDB's On-Demand Production Tuning

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Andreas Kretschmer 2009-03-18 13:41:12 Re: sql transaction
Previous Message Ashish Karalkar 2009-03-18 13:34:45 Re: Report all Comments