| От | 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?
|
| Список | 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 по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера