From: Josh Berkus <josh@agliodbs.com>
To: Yudie Pg <yudiepg@gmail.com>
Cc: pgsql-performance@postgresql.org
Subject: Re: How to speed up word count in tsearch2?
Date: Thu, 31 Mar 2005 12:50:45 -0800
Message-ID: <200503311250.45932.josh@agliodbs.com> (raw)
In-Reply-To: <e460d0c05033111584290bc6c@mail.gmail.com>
References: <e460d0c05033111584290bc6c@mail.gmail.com>
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
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: josh@agliodbs.com, yudiepg@gmail.com
Subject: Re: How to speed up word count in tsearch2?
In-Reply-To: <200503311250.45932.josh@agliodbs.com>
* 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