Skip site navigation (1) Skip section navigation (2)

Re: Slow Query- Bad Row Estimate

From: Josh Berkus <josh(at)agliodbs(dot)com>
To: pgsql-performance(at)postgresql(dot)org
Subject: Re: Slow Query- Bad Row Estimate
Date: 2010-10-29 21:09:37
Message-ID: (view raw or whole thread)
Lists: pgsql-performance
On 10/29/10 1:54 PM, Ozer, Pam wrote:
> "                    ->  Index Scan using dealergroupgeocache_i01 on
> dealergroupgeocache  (cost=0.00..5719.56 rows=9055 width=10) (actual
> time=0.015..87.689 rows=163491 loops=1)"

This appears to be your problem here.

a) when was dealergroupgeocache last ANALYZED?

b) try increasing the stats_target on dealergroupid and regionid, to say
500 and re-analyzing.

                                  -- Josh Berkus
                                     PostgreSQL Experts Inc.

In response to


pgsql-performance by date

Next:From: davidDate: 2010-10-29 21:14:26
Subject: Re: BBU Cache vs. spindles
Previous:From: Ozer, PamDate: 2010-10-29 20:54:04
Subject: Slow Query- Bad Row Estimate

Privacy Policy | About PostgreSQL
Copyright © 1996-2015 The PostgreSQL Global Development Group