Re: fate of CLUSTER command ?

Поиск
Список
Период
Сортировка
От Ross J. Reedstrom
Тема Re: fate of CLUSTER command ?
Дата
Msg-id 20020807052453.GB5933@rice.edu
обсуждение исходный текст
Ответ на Re: fate of CLUSTER command ?  (Bruce Momjian <pgman@candle.pha.pa.us>)
Список pgsql-hackers
On Sun, Aug 04, 2002 at 11:17:03PM -0400, Bruce Momjian wrote:
> Christopher Kings-Lynne wrote:
> > > Clustering on one index doesn't decrease the performance of the other
> > > indexes.  Also, only >=7.3 will preserve all indexes during cluster.
> > 
> > Sure it must?  Since you are rearranging all on-disk rows to match a
> > particular index (say user_id, username) then it will slow down other
> > indexes (eg one just on username).
> 
> It will slow down other index scans only if there was some clustering on
> those indexes before you ran the CLUSTER command.

Actually, it would depend on the level of correlation between the values
indexed. If there's some correlation, performance using the second index
could improve some - if they're anti-correlated, it will decrease. If
uncorrelated, there should be no effect.

Ross


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

Предыдущее
От: Neil Conway
Дата:
Сообщение: Re: Open 7.3 items
Следующее
От: Curt Sampson
Дата:
Сообщение: Re: CLUSTER and indisclustered