Re: Slow running to_tsvector (tsearch2 in PG 8.2.3)

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Markus Schiltknecht <markus(at)bluegap(dot)ch>
Cc: Henrik Zagerholm <henke(at)mac(dot)se>, pgsql-general(at)postgresql(dot)org
Subject: Re: Slow running to_tsvector (tsearch2 in PG 8.2.3)
Date: 2007-02-21 14:44:43
Message-ID: 13205.1172069083@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Markus Schiltknecht <markus(at)bluegap(dot)ch> writes:
> Henrik Zagerholm wrote:
>> Is this normal? What can I tweak in postgresql.conf to speed up big
>> to_tsvector()?

> Hm.. seems not too unreasonable to me.
> Take a look at the stemmers or dictionaries involved. What do you use there?

Also, I wonder how much of the time went into to_tsvector() and how much
into updating the GIST or GIN index that I suppose is on the column.
For a full update like this it might make sense to drop the index,
update the column, rebuild the index from scratch.

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message David Legault 2007-02-21 14:45:26 Re: REVOKE ALL
Previous Message Michael Fuhr 2007-02-21 14:42:26 Re: postgresql vs mysql