Re: PostgreSQL 7.1 forces sequence scan when there is no reason

Поиск
Список
Период
Сортировка
От Denis Perchine
Тема Re: PostgreSQL 7.1 forces sequence scan when there is no reason
Дата
Msg-id 200205212139.06742.dyp@perchine.com
обсуждение исходный текст
Ответ на Re: PostgreSQL 7.1 forces sequence scan when there is no reason  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы ERROR: value too long for type character varying(255)  (Doug Fields <dfields-pg-general@pexicom.com>)
Список pgsql-general
On Monday 20 May 2002 22:54, Tom Lane wrote:
> >  listmembers | server_id |         0 |         4 |       1150 |
> > {34062,32715,42495,15182,38013,36503,13746,46532,42434,15392}
> >
> > {0.038,0.027,0.024,0.0143333,0.012,0.01,0.00933333,0.00766667,0.00733333,
> >0.007}
> >
> >  | {12855,15419,16223,20598,26019,30733,34402,38139,40811,44986,49509}
> >  |    0.428932
>
> Hmm.  Correlation 0.43 is high enough to suggest that there's some
> clustering effect.  If you look in the archives there's been prior
> discussion about whether to make the optimizer weight the correlation
> factor more strongly.

I have increased sequence scan weight 5 times. And it uses index scan now, but
this is not the solution. I will have a look in the archives.

--
Denis


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: data addition speed or how to fast add data?
Следующее
От: Stephan Szabo
Дата:
Сообщение: Re: Mysterious locking problem