X-Original-To: pgsql-general-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.193]) by svr1.postgresql.org (Postfix) with ESMTP id A66A430F1BD for ; Mon, 23 Jun 2003 18:34:06 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (svr1.postgresql.org [64.117.224.193]) (amavisd-new, port 10024) with ESMTP id 26182-08 for ; Mon, 23 Jun 2003 15:33:56 -0300 (ADT) Received: from candle.pha.pa.us (momjian.navpoint.com [207.106.42.251]) by svr1.postgresql.org (Postfix) with ESMTP id 8B04530EF90 for ; Mon, 23 Jun 2003 15:33:54 -0300 (ADT) Received: (from pgman@localhost) by candle.pha.pa.us (8.11.6/8.11.6) id h5NIWci23968; Mon, 23 Jun 2003 14:32:38 -0400 (EDT) From: Bruce Momjian Message-Id: <200306231832.h5NIWci23968@candle.pha.pa.us> Subject: Re: MySQL/PG search times In-Reply-To: <20030623181119.942.qmail@celery.tssi.com> To: nolan@celery.tssi.com Date: Mon, 23 Jun 2003 14:32:38 -0400 (EDT) Cc: pgsql general list X-Mailer: ELM [version 2.4ME+ PL99 (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII X-Archive-Number: 200306/1484 X-Sequence-Number: 44412 See the FAQ item about index usage. You have to anchor the start only. --------------------------------------------------------------------------- nolan@celery.tssi.com wrote: > > We require ~* syntax for that, or upper()/lower(). > > Slowly the light dawns! > > If I anchor a ~ search on both ends, it is the same search as =. > > Duh! > > I converted the prototype over to use ~ and it is running much faster. > I'll try to do some detailed timings against MySQL tonight. > -- > Mike Nolan > -- Bruce Momjian | http://candle.pha.pa.us pgman@candle.pha.pa.us | (610) 359-1001 + If your life is a hard drive, | 13 Roberts Road + Christ can be your backup. | Newtown Square, Pennsylvania 19073