From: Tom Lane <tgl@sss.pgh.pa.us>
To: rawi <only4com@web.de>
Cc: pgsql-sql@postgresql.org
Subject: Re: Index Usage and Running Times by FullTextSearch with prefix matching
Date: Thu, 13 Jun 2013 10:56:38 -0400
Message-ID: <22495.1371135398@sss.pgh.pa.us> (raw)
In-Reply-To: <1371123556877-5759021.post@n5.nabble.com>
References: <1371123556877-5759021.post@n5.nabble.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-sql>
rawi <only4com@web.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
--
Sent via pgsql-sql mailing list (pgsql-sql@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-sql
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-sql@postgresql.org
Cc: tgl@sss.pgh.pa.us, only4com@web.de
Subject: Re: Index Usage and Running Times by FullTextSearch with prefix matching
In-Reply-To: <22495.1371135398@sss.pgh.pa.us>
* 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