From: Bruce Momjian <pgman@candle.pha.pa.us>
To: nolan@celery.tssi.com
Cc: pgsql general list <pgsql-general@postgresql.org>
Subject: Re: MySQL/PG search times
Date: Mon, 23 Jun 2003 14:32:38 -0400 (EDT)
Message-ID: <200306231832.h5NIWci23968@candle.pha.pa.us> (raw)
In-Reply-To: <20030623181119.942.qmail@celery.tssi.com>
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
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-docs@postgresql.org
Cc: pgman@candle.pha.pa.us, nolan@celery.tssi.com, pgsql-general@postgresql.org
Subject: Re: MySQL/PG search times
In-Reply-To: <200306231832.h5NIWci23968@candle.pha.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