X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id C88423A4156 for ; Tue, 16 Nov 2004 15:48:15 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 77107-02 for ; Tue, 16 Nov 2004 15:48:08 +0000 (GMT) Received: from mailer.elma.loc (mail.elma.fr [213.41.14.138]) by svr1.postgresql.org (Postfix) with ESMTP id 3AB403A4141 for ; Tue, 16 Nov 2004 15:48:11 +0000 (GMT) Received: from mailer.elma.loc (localhost [127.0.0.1]) by localhost (Postfix) with ESMTP id 9DA22EC08D; Tue, 16 Nov 2004 16:51:25 +0100 (CET) Received: from zoot.elma.loc (herve.elma.fr [10.0.1.2]) by mailer.elma.loc (Postfix) with ESMTP id 7D539EC023; Tue, 16 Nov 2004 16:51:25 +0100 (CET) From: =?iso-8859-15?q?Herv=E9_Piedvache?= Organization: Elma =?iso-8859-15?q?Ing=E9nierie?= Informatique To: Michael Fuhr Subject: Re: Tsearch2 really slower than ilike ? Date: Tue, 16 Nov 2004 16:48:11 +0100 User-Agent: KMail/1.7.1 Cc: pgsql-performance@postgresql.org References: <200411161555.59144.herve@elma.fr> <20041116153256.GA6026@winnie.fuhr.org> In-Reply-To: <20041116153256.GA6026@winnie.fuhr.org> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-15" Content-Transfer-Encoding: 8bit Content-Disposition: inline Message-Id: <200411161648.11519.herve@elma.fr> X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200411/223 X-Sequence-Number: 9177 Michael, Le Mardi 16 Novembre 2004 16:32, Michael Fuhr a écrit : > On Tue, Nov 16, 2004 at 03:55:58PM +0100, Hervé Piedvache wrote: > > WHERE s.idx_site_name @@ to_tsquery('atari'); > > How much text does each site_name field contain? From the field > name I'd guess only a few words. Based on my own experience, if > the fields were documents containing thousands of words then I'd > expect tsearch2 to be faster than ILIKE by an order of magnitude > or more. Yes site name ... is company names or web site name ... so not many word in each record ... but I don't understand why more words are more efficient than few words ?? sorry ... Regards, -- Hervé Piedvache Elma Ingénierie Informatique 6 rue du Faubourg Saint-Honoré F-75008 - Paris - France Pho. 33-144949901 Fax. 33-144949902