Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Upxgv-0008Cu-2o for pgsql-sql@arkaria.postgresql.org; Fri, 21 Jun 2013 09:31:37 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1Upxgu-00068m-II for pgsql-sql@arkaria.postgresql.org; Fri, 21 Jun 2013 09:31:36 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Upxgt-00068g-Ur for pgsql-sql@postgresql.org; Fri, 21 Jun 2013 09:31:36 +0000 Received: from sam.nabble.com ([216.139.236.26]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Upxgq-0003Tx-Iq for pgsql-sql@postgresql.org; Fri, 21 Jun 2013 09:31:35 +0000 Received: from [192.168.236.26] (helo=sam.nabble.com) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1Upxgn-0001ZL-Mr for pgsql-sql@postgresql.org; Fri, 21 Jun 2013 02:31:29 -0700 Date: Fri, 21 Jun 2013 02:31:29 -0700 (PDT) From: rawi To: pgsql-sql@postgresql.org Message-ID: <1371807089696-5760297.post@n5.nabble.com> In-Reply-To: <22495.1371135398@sss.pgh.pa.us> References: <1371123556877-5759021.post@n5.nabble.com> <22495.1371135398@sss.pgh.pa.us> Subject: Re: Index Usage and Running Times by FullTextSearch with prefix matching MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -0.8 (/) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-sql Precedence: bulk Sender: pgsql-sql-owner@postgresql.org Tom Lane-2 wrote > rawi < > only4com@ > > 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? Last tests with PG 9.2: Whereas the "whole words" full text search stays at ~350ms for 900,000 records I tryed the number of records, which are becoming to make one suffer, querying for prefixes: RECORDS RUNTIME (ms) 10,000 13 100,000 81 200,000 172 400,000 7,284 900,000 20,888 Regards, Rawi -- View this message in context: http://postgresql.1045698.n5.nabble.com/Index-Usage-and-Running-Times-by-FullTextSearch-with-prefix-matching-tp5759021p5760297.html Sent from the PostgreSQL - sql mailing list archive at Nabble.com. -- Sent via pgsql-sql mailing list (pgsql-sql@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-sql