Re: [GENERAL] interesting PHP/MySQL thread

Поиск
Список
Период
Сортировка
От Christopher Kings-Lynne
Тема Re: [GENERAL] interesting PHP/MySQL thread
Дата
Msg-id 029201c3394b$dc63e310$2800a8c0@mars
обсуждение исходный текст
Ответ на Re: [GENERAL] interesting PHP/MySQL thread  (nolan@celery.tssi.com)
Список 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 по дате отправления:

Предыдущее
От: Sean Chittenden
Дата:
Сообщение: Re: [GENERAL] interesting PHP/MySQL thread
Следующее
От: Ian Barwick
Дата:
Сообщение: Re: [GENERAL] interesting PHP/MySQL thread