pg.ddx.io  pgsql-docs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
MySQL/PG search times
3+ messages / 3 participants
[nested] [flat]

* MySQL/PG search times
@ 2003-06-23 18:11 nolan@celery.tssi.com
  2003-06-23 18:32 ` Re: MySQL/PG search times Bruce Momjian <pgman@candle.pha.pa.us>
  2003-06-24 01:15 ` Re: MySQL/PG search times The Hermit Hacker <scrappy@postgresql.org>
  0 siblings, 2 replies; 3+ messages in thread

From: nolan@celery.tssi.com @ 2003-06-23 18:11 UTC (permalink / raw)
  To: pgman@candle.pha.pa.us; +Cc: pgsql-general@postgresql.org

> 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



^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: MySQL/PG search times
  2003-06-23 18:11 MySQL/PG search times nolan@celery.tssi.com
@ 2003-06-23 18:32 ` Bruce Momjian <pgman@candle.pha.pa.us>
  1 sibling, 0 replies; 3+ messages in thread

From: Bruce Momjian @ 2003-06-23 18:32 UTC (permalink / raw)
  To: nolan@celery.tssi.com; +Cc: pgsql general list <pgsql-general@postgresql.org>


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



^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: MySQL/PG search times
  2003-06-23 18:11 MySQL/PG search times nolan@celery.tssi.com
@ 2003-06-24 01:15 ` The Hermit Hacker <scrappy@postgresql.org>
  1 sibling, 0 replies; 3+ messages in thread

From: The Hermit Hacker @ 2003-06-24 01:15 UTC (permalink / raw)
  To: nolan@celery.tssi.com; +Cc: Bruce Momjian <pgman@candle.pha.pa.us>; pgsql general list <pgsql-general@postgresql.org>

On Mon, 23 Jun 2003 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 =.

'K, now I'm confused ... what does your SELECT look like now?




^ permalink  raw  reply  [nested|flat] 3+ messages in thread


end of thread, other threads:[~2003-06-24 01:15 UTC | newest]

Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2003-06-23 18:11 MySQL/PG search times nolan@celery.tssi.com
2003-06-23 18:32 ` Bruce Momjian <pgman@candle.pha.pa.us>
2003-06-24 01:15 ` The Hermit Hacker <scrappy@postgresql.org>

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