Re: Slow running to_tsvector (tsearch2 in PG 8.2.3)

From: Richard Huxton <dev(at)archonet(dot)com>
To: Henrik Zagerholm <henke(at)mac(dot)se>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Slow running to_tsvector (tsearch2 in PG 8.2.3)
Date: 2007-02-21 11:05:58
Message-ID: 45DC2796.4030102@archonet.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Henrik Zagerholm wrote:
> The document has about 194 000 words.

> 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()?

Is this a problem? How many 194,000 word documents do you index? If you
have many, you might want to separate them into chapters. I think
tsearch2 is more targetted at web-pages or short PDFs rather than whole
books.

--
Richard Huxton
Archonet Ltd

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Markus Schiltknecht 2007-02-21 11:09:14 Re: Slow running to_tsvector (tsearch2 in PG 8.2.3)
Previous Message Henrik Zagerholm 2007-02-21 09:59:32 Slow running to_tsvector (tsearch2 in PG 8.2.3)