Re: ~* + LIMIT => infinite time?

Поиск
Список
Период
Сортировка
От Josh Berkus
Тема Re: ~* + LIMIT => infinite time?
Дата
Msg-id web-2283495@davinci.ethosmedia.com
обсуждение исходный текст
Ответ на Re: ~* + LIMIT => infinite time?  (<typea@l-i-e.com>)
Ответы Re: ~* + LIMIT => infinite time?  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-performance
Typea,

> Oh, and the lower(field) LIKE is MySQL compatible, but I don't think
> MySQL
> has an ILIKE... We're abandoning the MySQL support now anyway, since
> we
> NEED performance way more than we need MySQL compatibility.

ILIKE is SQL-spec.  There's reasons to use any:

ILIKE is slightly faster on un-anchored text searches ("name ILIKE
'%john%'")

lower(column) can be indexed for anchored text searches ("lower(name)
LIKE 'john%'")

"~*" cannot be indexed, but will accept regexp operators for
sophisticated text searches ("name ~* 'jo[han]n?'")

-Josh Berkus

В списке pgsql-performance по дате отправления:

Предыдущее
От:
Дата:
Сообщение: Re: ~* + LIMIT => infinite time?
Следующее
От: Tom Lane
Дата:
Сообщение: Re: ~* + LIMIT => infinite time?