On 12.10.2013 12:11, Alexander Korotkov wrote:
> On Sat, Oct 12, 2013 at 1:55 AM, Tomas Vondra <t...@fuzzy.cz
> <mailto:t...@fuzzy.cz>> wrote:
> 
>     Yup, this version fixed the issues. I haven't been able to do any
>     benchmarks yet, all I have is some basic stats
> 
>                    |   HEAD   |  patched
>     ======================================
>     load duration  |  1084 s  |   1086 s
>     subject index  |   96 MB  |     96 MB
>     body index     | 2349 MB  |   2051 MB
> 
>     So there's virtually no difference in speed (which is expected, AFAIK)
>     and the large index on full message bodies is significantly smaller.
> 
> 
> Yes, it should be no significant difference in speed. But difference in
> index sizes seems to be too small. Could you share database dump somewhere?

Turns out that if I do VACUUM FULL after loading the data (a sequence of
INSERT commands), the index sizes drop significantly.

                   |   HEAD   |  patched
    ======================================
    subject index  |   42 MB  |    15 MB
    body index     |  624 MB  |   328 MB

So there's a significant improvement, as expected. I'm wondering if the
bloat is expected too? Is that the consequence of incremental index
updates vs. rebuilding the whole index at once during VACUUM FULL?

Tomas


-- 
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers

Reply via email to