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 CDC7B3A2B29 for ; Tue, 16 Nov 2004 16:27:39 +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 93454-03 for ; Tue, 16 Nov 2004 16:27:37 +0000 (GMT) Received: from ra.sai.msu.su (ra.sai.msu.su [158.250.29.2]) by svr1.postgresql.org (Postfix) with ESMTP id B0B9C3A3C0B for ; Tue, 16 Nov 2004 16:27:30 +0000 (GMT) Received: from ra (ra [158.250.29.2]) by ra.sai.msu.su (8.12.10/8.12.10) with ESMTP id iAGGR5QT018156; Tue, 16 Nov 2004 19:27:05 +0300 (MSK) Date: Tue, 16 Nov 2004 19:27:05 +0300 (MSK) From: Oleg Bartunov X-X-Sender: megera@ra.sai.msu.su To: "Joshua D. Drake" Cc: =?ISO-8859-15?Q?Herv=E9_Piedvache?= , Michael Fuhr , pgsql-performance@postgresql.org Subject: Re: Tsearch2 really slower than ilike ? In-Reply-To: <419A250C.9020300@commandprompt.com> Message-ID: References: <200411161555.59144.herve@elma.fr> <20041116153256.GA6026@winnie.fuhr.org> <200411161648.11519.herve@elma.fr> <419A250C.9020300@commandprompt.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed 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/229 X-Sequence-Number: 9183 On Tue, 16 Nov 2004, Joshua D. Drake wrote: > >>> 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 ... >> > Well there are a couple of reasons but the easiest one is index size. > An ILIKE btree index is in general going to be much smaller than a gist > index. > The smaller the index the faster it is searched. for single word queries @@ should have the same performance as ilike with index disabled and better for complex queries. > > Sincerely, > > Joshua D. Drake > > > >> Regards, >> > > > Regards, Oleg _____________________________________________________________ Oleg Bartunov, sci.researcher, hostmaster of AstroNet, Sternberg Astronomical Institute, Moscow University (Russia) Internet: oleg@sai.msu.su, http://www.sai.msu.su/~megera/ phone: +007(095)939-16-83, +007(095)939-23-83