Re: Dynamic Partitioning using Segment Visibility Maps

Поиск
Список
Период
Сортировка
От Gavin Sherry
Тема Re: Dynamic Partitioning using Segment Visibility Maps
Дата
Msg-id 20080109223643.GB999@europa.idg.com.au
обсуждение исходный текст
Ответ на Re: Dynamic Partitioning using Segment Visibility Maps  (Chris Browne <cbbrowne@acm.org>)
Список pgsql-hackers
On Wed, Jan 09, 2008 at 02:38:21PM -0500, Chris Browne wrote:
> Ron Mayer <rm_pg@cheapcomplexdevices.com> writes:
> > Or am I missing something?
> 
> Well, this can head in two directions...
> 
> 1.  Suppose we're not using an "organize in CLUSTER order" approach.
> 
> If the data is getting added in roughly "by order of insertion" order,
> then there's no reason to expect San Francisco data to be clustered
> together.
> 
> Ditto for "John Smiths;" we can expect them to be as scattered as
> their dates of creation.
> 
> 1.  Suppose we *are* using an "organize in CLUSTER order" approach.
> 
> In that case, yes, indeed, you can expect segments to contain specific
> ranges of the data.
> 
> However, in that case, the ONLY dimension under which the Segment
> Exclusion may be expected to be useful is that of the first column of
> the index being used.  "Smith" should be useful to SE, but not "John,"
> because, as a secondary criteria, the first name values will be
> scattered across all segments.

One of the reasons for using partitions is that the usefulness of
indexes breaks down because of the low cardinality of the indexed
column. Also, the random IO can kill your performance.

In my opinion, CLUSTER (and vacuum, mentioned else where) are not data
management tools.

Thanks,

Gavin


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: tzdata issue on cross-compiled postgresql
Следующее
От: Gavin Sherry
Дата:
Сообщение: Re: Dynamic Partitioning using Segment Visibility Maps