Re: How to speed up word count in tsearch2?

From: Josh Berkus <josh(at)agliodbs(dot)com>
To: Yudie Pg <yudiepg(at)gmail(dot)com>
Cc: pgsql-performance(at)postgresql(dot)org
Subject: Re: How to speed up word count in tsearch2?
Date: 2005-03-31 20:50:45
Message-ID: 200503311250.45932.josh@agliodbs.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

Yudie,

> (It is the 2nd posting, maybe the 1st one didn't goes thru)
> I've tested several keyword count from 2 millions record book
> description table that indexed with tseach2 indexing.
> The result is always slow for first query attempt.

Yes, this is because your tsearch2 index is getting pushed out of RAM. When
the index is cached it's very, very fast but takes a long time to get loaded
from disk.

You need to look at what else is using RAM on that machine. And maybe buy
more.

--
--Josh

Josh Berkus
Aglio Database Solutions
San Francisco

In response to

Responses

Browse pgsql-performance by date

  From Date Subject
Next Message PFC 2005-03-31 21:28:03 Re: Very long time to execute and Update, suggestions?
Previous Message Yudie Pg 2005-03-31 19:58:30 How to speed up word count in tsearch2?