Slow running to_tsvector (tsearch2 in PG 8.2.3) - Mailing list pgsql-general

From Henrik Zagerholm
Subject Slow running to_tsvector (tsearch2 in PG 8.2.3)
Date
Msg-id 81E2F3F6-0543-4D78-B205-3EC575D3A081@mac.se
Whole thread Raw
Responses Re: Slow running to_tsvector (tsearch2 in PG 8.2.3)
Re: Slow running to_tsvector (tsearch2 in PG 8.2.3)
Re: Slow running to_tsvector (tsearch2 in PG 8.2.3)
List 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


pgsql-general by date:

Previous
From: "hubert depesz lubaczewski"
Date:
Subject: Re: Odd behaviour of timestamptz
Next
From: Richard Huxton
Date:
Subject: Re: Slow running to_tsvector (tsearch2 in PG 8.2.3)