Re: LIKE and REGEX optimization

Поиск
Список
Период
Сортировка
От hubert depesz lubaczewski
Тема Re: LIKE and REGEX optimization
Дата
Msg-id 20080117121018.GA30338@depesz.com
обсуждение исходный текст
Ответ на Re: LIKE and REGEX optimization  ("Scott Marlowe" <scott.marlowe@gmail.com>)
Список pgsql-general
On Tue, Jan 15, 2008 at 04:49:41PM -0600, Scott Marlowe wrote:
> This query is not capable of using an index on name, since you can't
> use an index with a like beginning with a %... So

actually you can. you just can't use index for like %something%, but it
can be solved using trigrams or another approaches. for example:
http://www.depesz.com/index.php/2007/09/15/speeding-up-like-xxx/

depesz

--
quicksil1er: "postgres is excellent, but like any DB it requires a
highly paid DBA.  here's my CV!" :)
http://www.depesz.com/ - blog dla ciebie (i moje CV)

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

Предыдущее
От: Richard Huxton
Дата:
Сообщение: Re: Can't make backup (again)
Следующее
От: Sebastián Baioni
Дата:
Сообщение: Re: Can't make backup (again)