Re: Time-correlated columns in large tables

Поиск
Список
Период
Сортировка
От Jeroen T. Vermeulen
Тема Re: Time-correlated columns in large tables
Дата
Msg-id 21077.125.24.218.236.1173127140.squirrel@webmail.xs4all.nl
обсуждение исходный текст
Ответ на Re: Time-correlated columns in large tables  (Heikki Linnakangas <heikki@enterprisedb.com>)
Ответы Re: Time-correlated columns in large tables  ("Luke Lonergan" <llonergan@greenplum.com>)
Список pgsql-hackers
On Tue, March 6, 2007 03:17, Heikki Linnakangas wrote:

> I think you've just described a range-encoded bitmap index. The idea is
> to divide the range of valid values into a some smallish number of
> subranges, and for each of these boundary values you store a bitmap
> where you set the bit representing every tuple with value < boundary
> value.

That's pretty cool!  From the looks of it, what you describe would solve
my problem--but using more storage in return for more flexibility.  My
scheme really required a correlation between a value and storage order,
which can be pretty fragile.  These range-encoded bitmap indexes wouldn't
have that problem.

I guess if you did simple run-length compression on these bitmaps you'd
end up more or less where I came in.  But you wouldn't want to flip a bit
somewhere in the middle of a compressed data stream, of course. :-)


Jeroen




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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Bug: Buffer cache is not scan resistant
Следующее
От: Jeff Davis
Дата:
Сообщение: Re: Bug: Buffer cache is not scan resistant