Re: Compression and on-disk sorting
От | Greg Stark |
---|---|
Тема | Re: Compression and on-disk sorting |
Дата | |
Msg-id | 871wuts456.fsf@stark.xeocode.com обсуждение исходный текст |
Ответ на | Re: Compression and on-disk sorting (Andrew Piskorski <atp@piskorski.com>) |
Ответы |
Re: Compression and on-disk sorting
Re: Compression and on-disk sorting |
Список | pgsql-hackers |
Andrew Piskorski <atp@piskorski.com> writes: > The main tricks seem to be: One, EXTREMELY lightweight compression > schemes - basically table lookups designed to be as cpu friendly as > posible. Two, keep the data compressed in RAM as well so that you can > also cache more of the data, and indeed keep it the compressed until > as late in the CPU processing pipeline as possible. > > A corrolary of that is forget compression schemes like gzip - it > reduces data size nicely but is far too slow on the cpu to be > particularly useful in improving overall throughput rates. There are some very fast decompression algorithms: http://www.oberhumer.com/opensource/lzo/ I think most of the mileage from "lookup tables" would be better implemented at a higher level by giving tools to data modellers that let them achieve denser data representations. Things like convenient enum data types, 1-bit boolean data types, short integer data types, etc. -- greg
В списке pgsql-hackers по дате отправления: