pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Rick Jansen <rick@rockingstone.nl>
To: Oleg Bartunov <oleg@sai.msu.su>
Cc: Mike Rylander <mrylander@gmail.com>
Cc: pgsql-performance@postgresql.org
Subject: Re: Tsearch2 performance on big database
Date: Thu, 24 Mar 2005 11:58:04 +0100
Message-ID: <42429D3C.9000509@rockingstone.nl> (raw)
In-Reply-To: <Pine.GSO.4.62.0503241343580.5508@ra.sai.msu.su>
References: <42400F57.3040604@rockingstone.nl>
	<Pine.GSO.4.62.0503221533400.5508@ra.sai.msu.su>
	<b918cf3d050322044847d3f9e1@mail.gmail.com>
	<42401CBF.50403@rockingstone.nl>
	<b918cf3d0503220730665fe92c@mail.gmail.com>
	<Pine.GSO.4.62.0503221840480.5508@ra.sai.msu.su>
	<42404263.40604@rockingstone.nl>
	<Pine.GSO.4.62.0503221907320.5508@ra.sai.msu.su>
	<42412E4B.4010407@rockingstone.nl>
	<Pine.GSO.4.62.0503231236390.5508@ra.sai.msu.su>
	<42429940.8040607@rockingstone.nl>
	<Pine.GSO.4.62.0503241343580.5508@ra.sai.msu.su>

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



view thread (14+ messages)

Message-ID: <42429D3C.9000509@rockingstone.nl>
Permalink:  ../42429D3C.9000509@rockingstone.nl/
Also on:    postgresql.org/message-id/42429D3C.9000509@rockingstone.nl

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-performance@postgresql.org
  Cc: rick@rockingstone.nl, oleg@sai.msu.su, mrylander@gmail.com
  Subject: Re: Tsearch2 performance on big database
  In-Reply-To: <42429D3C.9000509@rockingstone.nl>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox