Re: [GENERAL] interesting PHP/MySQL thread - Mailing list pgsql-advocacy

From Christopher Kings-Lynne
Subject Re: [GENERAL] interesting PHP/MySQL thread
Date
Msg-id 029201c3394b$dc63e310$2800a8c0@mars
Whole thread Raw
In response to Re: [GENERAL] interesting PHP/MySQL thread  (nolan@celery.tssi.com)
List pgsql-advocacy
> Also, unlike PostgreSQL (at least in 7.3), if you define an index on
> the column, mysql appears to use it for LIKE queries.
>
>    "SELECT * FROM table WHERE field LIKE 'nolan%';"

Nonsense.  PostgreSQL indexes such a thing quite happily.  I've used that a
lot.

> is very fast in mysql but not in 7.3, and even non-anchored LIKE searches
> in mysql appear to be using the index.
>
>    "SELECT * FROM table WHERE field LIKE '%nolan%';"
>
> executes considerably faster with an index on field than without one.

Hmmm - that seems iffy to me - have they invented a new field of index
theory?

Chris


pgsql-advocacy by date:

Previous
From: Sean Chittenden
Date:
Subject: Re: [GENERAL] interesting PHP/MySQL thread
Next
From: Ian Barwick
Date:
Subject: Re: [GENERAL] interesting PHP/MySQL thread