Re: Tsearch2 performance on big database

From: Rick Jansen <rick(at)rockingstone(dot)nl>
To: Oleg Bartunov <oleg(at)sai(dot)msu(dot)su>
Cc: Mike Rylander <mrylander(at)gmail(dot)com>, pgsql-performance(at)postgresql(dot)org
Subject: Re: Tsearch2 performance on big database
Date: 2005-03-24 10:58:04
Message-ID: 42429D3C.9000509@rockingstone.nl
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

Oleg Bartunov wrote:
>
> stat() is indeed a bigdog, it was designed for developers needs,
> so we recommend to save results in table.
>
>>
>> Anyway, here's my pg_ts_cfgmap now (well the relevant bits):
>>
>> default_english | lhword | {en_ispell,en_stem}
>> default_english | lpart_hword | {en_ispell,en_stem}
>> default_english | lword | {en_ispell,en_stem}
>>
>> Is it normal that queries for single words (or perhaps they are words
>> that are common) take a really long time? Like this:
>>
>
> 'hispanic' isn't common, I see you get only 674 rows and 'buckingham &
> palace' returns 185 rows. Did you run 'vacuum analyze' ?
> I see a big discrepancy between estimated rows (8041) and actual rows.
>
>

Yes, I did a vacuum analyze right before executing these queries.

I'm going to recreate the gist index now, and do a vacuum full analyze
after that.. see if that makes a difference.

Rick

--
Systems Administrator for Rockingstone IT
http://www.rockingstone.com
http://www.megabooksearch.com - Search many book listing sites at once

In response to

Browse pgsql-performance by date

  From Date Subject
Next Message Gustavo Franklin Nóbrega - Planae 2005-03-24 11:52:15 Re: CPU 0.1% IOWAIT 99% for decisonnal queries
Previous Message Oleg Bartunov 2005-03-24 10:51:42 Re: Tsearch2 performance on big database