~* OR LIKE?

Поиск
Список
Период
Сортировка
От Matt Friedman
Тема ~* OR LIKE?
Дата
Msg-id 00bc01c0b3e7$3bcf6a00$03284d18@mattq3h8budilr
обсуждение исходный текст
Ответы Re: ~* OR LIKE?
Список pgsql-general
I have a query that I could run a number of ways:
Like this:

  index_word.word ~*'radio.*'
  OR
  index_word.word ~*'spry.*'

Or I could use LIKE and the "%" comparison

If I toss out the need for comparisions I could just use: IN
('radio','spry')

What's the relative performance for:  "IN" "LIKE" or "~*"? I'm trying to
decide if the performance loss of doing extra string compares is worth
getting slighly more relevant results.

Matt Friedman





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

Предыдущее
От: will trillich
Дата:
Сообщение: Re: Re: Re: Rules, views, sequences and returned values
Следующее
От: Doug McNaught
Дата:
Сообщение: Re: Re: Re: Rules, views, sequences and returned values