Re: Poor query performance on one of two "like" databases in production.

Поиск
Список
Период
Сортировка
От Vick Khera
Тема Re: Poor query performance on one of two "like" databases in production.
Дата
Msg-id AANLkTikpKHQg12xNMrm5_mhNsKV5NS7Yv79tgzaB9Rbo@mail.gmail.com
обсуждение исходный текст
Ответ на Poor query performance on one of two "like" databases in production.  (<Keaton_Adams@McAfee.com>)
Ответы Re: Poor query performance on one of two "like" databases in production.  (Vick Khera <vivek@khera.org>)
Список pgsql-general
On Fri, May 14, 2010 at 1:28 PM,  <Keaton_Adams@mcafee.com> wrote:
> I did run an ANALYZE, then vacuum full, then another ANALYZE on all tables involved in the query.  That didn't change
things. I compared QUERY TUNING settings in both postgresql.conf files and they are identical.  There is a difference
inrow counts in each table between the databases, but not by much. 
>

What's your default_statistics_target value?  ie, run "select
default_statistics_target;"

Try setting it to 100 if it is not already, re-run analyze, then try
the queries. The statistics may just be different.

В списке pgsql-general по дате отправления:

Предыдущее
От: Merlin Moncure
Дата:
Сообщение: Re: appending items to record variable
Следующее
От: Vick Khera
Дата:
Сообщение: Re: Poor query performance on one of two "like" databases in production.