Re: ts_rank seems very slow (140 ranked documents / second on my machine)

From: Oleg Bartunov <oleg(at)sai(dot)msu(dot)su>
To: Nicolas Grilly <nicolas(at)gardentechno(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: ts_rank seems very slow (140 ranked documents / second on my machine)
Date: 2011-07-13 06:16:07
Message-ID: Pine.LNX.4.64.1107131013370.17363@sn.sai.msu.ru
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Tue, 12 Jul 2011, Nicolas Grilly wrote:

> On Tue, Jul 12, 2011 at 22:25, Oleg Bartunov <oleg(at)sai(dot)msu(dot)su> wrote:
>> I don't see your query uses index :)
>
> Yes, I know. :)
>
> I ran VACUUM ANALYZE and re-ran the query but the output of EXPLAIN
> ANALYZE stays exactly the same: no index used.
>
> Any idea why?

there is problem with estimating of cost scanning gin index in < 9.1 versions,
so you can
set enable_seqscan=off;
or try 9.1 which beta3 now.

>
> By the way, does ts_rank is supposed to use a GIN index when it's available?

no, I see no benefit :)

Regards,
Oleg
_____________________________________________________________
Oleg Bartunov, Research Scientist, Head of AstroNet (www.astronet.ru)
Sternberg Astronomical Institute, Moscow University, Russia
Internet: oleg(at)sai(dot)msu(dot)su, http://www.sai.msu.su/~megera/
phone: +007(495)939-16-83, +007(495)939-23-83

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Giuseppe Sacco 2011-07-13 07:49:00 About permissions on large objects
Previous Message Sim Zacks 2011-07-13 05:08:30 Re: Alter Columns with Triggers