Re: how to speed ilike

Поиск
Список
Период
Сортировка
От Kevin Grittner
Тема Re: how to speed ilike
Дата
Msg-id 4B5D45D3020000250002EB4A@gw.wicourts.gov
обсуждение исходный текст
Ответ на how to speed ilike  (Julius Tuskenis <julius@nsoft.lt>)
Ответы Re: how to speed ilike  (Julius Tuskenis <julius@nsoft.lt>)
Список pgsql-admin
Julius Tuskenis  wrote:

> I've made a function that converts lithuanian letters to latin and
> use it like fnk_latin(username) ILIKE fnk_latin('kestas').

> Now the problem is performance.

> Maybe some special index would help?

create index tblname_username_latin on tblname
((fnk_latin(username)));

You might want to have that function force all letters to lowercase.
It might also help to specify varchar_pattern_ops.

-Kevin

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

Предыдущее
От: Julius Tuskenis
Дата:
Сообщение: how to speed ilike
Следующее
От: "Kevin Grittner"
Дата:
Сообщение: Re: max_fsm_pages question