Re: What index for 'like (%keyword%)' ???

Поиск
Список
Период
Сортировка
От Richard Huxton
Тема Re: What index for 'like (%keyword%)' ???
Дата
Msg-id 200403311307.54680.dev@archonet.com
обсуждение исходный текст
Ответ на What index for 'like (%keyword%)' ???  ("Priem, Alexander" <ap@cict.nl>)
Список pgsql-performance
On Wednesday 31 March 2004 10:51, Priem, Alexander wrote:
> Hi everyone,
>
> I am building a query which uses a clause like "Where doc_description like
> '%keyword%'". I know a normal index won't be of any use here, but since the
> table in question will get fairly big, I do want to use an index.
>
> Can anyone give me some advise on what kind of index I can use here? Or
> shouldn't I use one in this case?

You probably want to look at the contrib/tsearch2 full-text indexing module.

--
  Richard Huxton
  Archonet Ltd

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

Предыдущее
От: "Priem, Alexander"
Дата:
Сообщение: What index for 'like (%keyword%)' ???
Следующее
От: "Jaime Casanova"
Дата:
Сообщение: Re: select slow?