Slow running to_tsvector (tsearch2 in PG 8.2.3)

From: Henrik Zagerholm <henke(at)mac(dot)se>
To: pgsql-general(at)postgresql(dot)org
Subject: Slow running to_tsvector (tsearch2 in PG 8.2.3)
Date: 2007-02-21 09:59:32
Message-ID: 81E2F3F6-0543-4D78-B205-3EC575D3A081@mac.se
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hello list,

I've been testing tsearch2 for a while and I recently noticed some
really slow queries.

This is a quite big document so the times are maybe accurate.

The document has about 194 000 words.

I put all the data in tbl_fulltext.fulltext_text and then did a

update tbl_fulltext set vectors = to_tsvector(fulltext_text);

Which takes about 80 seconds to complete.
The hardware is a Pentium 4 2.8GHz with 1GB HyperX memory.

Is this normal? What can I tweak in postgresql.conf to speed up big
to_tsvector()?

Regards,
Henrik

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Richard Huxton 2007-02-21 11:05:58 Re: Slow running to_tsvector (tsearch2 in PG 8.2.3)
Previous Message hubert depesz lubaczewski 2007-02-21 09:50:37 Re: Odd behaviour of timestamptz