From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | Jeffery Collins <collins(at)onyx-technologies(dot)com> |
Cc: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: lztext and compression ratios... |
Date: | 2000-07-05 18:12:37 |
Message-ID: | 3701.962820757@sss.pgh.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general pgsql-hackers pgsql-sql |
Jeffery Collins <collins(at)onyx-technologies(dot)com> writes:
> My experience with attempting to compress such a relatively small
> (around 1K) text string is that the compression ration is not very
> good. This is because the string is not long enough for the LZ
> compression algorithm to establish really good compression patterns and
> the fact that the de-compression table has to be built into each
> record. What I have done in the past to get around these problems is
> that I have "taught" the compression algorithm the patterns ahead of
> time and stored the de-compression patterns in an external table. Using
> this technique, I have achieved *much* better compression ratios.
(Puts on compression-guru hat...)
There is much in what you say. Perhaps we should consider keeping the
lztext type around (currently it's slated for doom in 7.1, since the
TOAST feature will make plain text do everything lztext does and more)
and having it be different from text in that a training sample is
supplied when the column is defined. Not quite sure how that should
look or where to store the sample, but it could be a big win for tables
having a large number of moderate-sized text entries.
regards, tom lane
From | Date | Subject | |
---|---|---|---|
Next Message | Charles Tassell | 2000-07-05 18:17:54 | Re[2]: Interface Question |
Previous Message | David Stokes | 2000-07-05 17:51:00 | change in now() and ago with 7.x |
From | Date | Subject | |
---|---|---|---|
Next Message | Trond Eivind=?iso-8859-1?q?_Glomsr=F8d?= | 2000-07-05 18:33:08 | Re: [HACKERS] Re: Revised Copyright: is this morepalatable? |
Previous Message | Jan Wieck | 2000-07-05 18:01:54 | Re: Article on MySQL vs. Postgres |
From | Date | Subject | |
---|---|---|---|
Next Message | Mitch Vincent | 2000-07-05 18:39:17 | PostgreSQL 7.1 |
Previous Message | Tom Lane | 2000-07-05 17:15:22 | Re: ERROR: ExecEvalAggref: no aggregates in this expression context |