Re: Index Usage and Running Times by FullTextSearch with prefix matching

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: rawi <only4com(at)web(dot)de>
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: Index Usage and Running Times by FullTextSearch with prefix matching
Date: 2013-06-13 14:56:38
Message-ID: 22495.1371135398@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

rawi <only4com(at)web(dot)de> writes:
> And querying: FTS with prefix matching:

> SELECT count(a)
> FROM t1
> WHERE a_tsvector @@ to_tsquery('aaa:* & b:* & c:* & d:*')

> (RESULT: count: 619)
> Total query runtime: 21266 ms.

FWIW, I get fairly decent performance for cases like this in HEAD
(at least with a GIN index; GIST seems much less able to do well with
short prefixes). What PG version are you testing?

regards, tom lane

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message rawi 2013-06-13 15:20:56 Re: Index Usage and Running Times by FullTextSearch with prefix matching
Previous Message rawi 2013-06-13 11:39:16 Index Usage and Running Times by FullTextSearch with prefix matching