Re: How to speed up tsearch2 indexing

From: Oleg Bartunov <oleg(at)sai(dot)msu(dot)su>
To: Werner Bohl <WernerBohl(at)infutor(dot)com>
Cc: pgsql-performance(at)postgresql(dot)org
Subject: Re: How to speed up tsearch2 indexing
Date: 2005-03-09 17:41:01
Message-ID: Pine.GSO.4.62.0503092038540.26616@ra.sai.msu.su
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

On Wed, 9 Mar 2005, Werner Bohl wrote:

> All,
>
> I have a table with ~ 3 million records. I'm indexing a field holding
> names, no more than 200 bytes each. Indexing the resulting tsvector
> takes forever. It's been running now for more than 40 hours on a Linux
> with PG 8.01, a single Xeon & 4GB RAM. My work_mem postgresql.conf
> parameter is at 240960 and maintenance_work_mem at 96384, although the
> index task is using at most 12MB. Task is 99% cpu bound. Is there any
> way I may speed up the indexing?

What's your tsearch2 configuration ? Do you use dictionaries ?
I wrote a brief explanation of tsearch2 internals
http://www.sai.msu.su/~megera/oddmuse/index.cgi/Tsearch_V2_internals

Hope, it could help you.

>
>
> TIA,
>
>
>

Regards,
Oleg
_____________________________________________________________
Oleg Bartunov, sci.researcher, hostmaster of AstroNet,
Sternberg Astronomical Institute, Moscow University (Russia)
Internet: oleg(at)sai(dot)msu(dot)su, http://www.sai.msu.su/~megera/
phone: +007(095)939-16-83, +007(095)939-23-83

In response to

Responses

Browse pgsql-performance by date

  From Date Subject
Next Message Werner Bohl 2005-03-09 20:21:06 Re: How to speed up tsearch2 indexing
Previous Message Werner Bohl 2005-03-09 17:25:47 How to speed up tsearch2 indexing