Re:

Поиск
Список
Период
Сортировка
От Hannu Krosing
Тема Re:
Дата
Msg-id 1038863893.1942.3.camel@rh72.home.ee
обсуждение исходный текст
Ответ на Re:  (<typea@l-i-e.com>)
Список pgsql-performance
typea@l-i-e.com kirjutas T, 03.12.2002 kell 01:45:
> Explains were posted previously, but I'll do a couple more.
>
> At its simplest, this takes 30 seconds:
>
> explain select article.* from article where lower(text) like '%einstein%';
> NOTICE:  QUERY PLAN:
>
> Seq Scan on article  (cost=0.00..1155.01 rows=1 width=216)

searches with LIKE use indexes only when the like expression starts
with a string (like 'einstein%') and even then only if in C locale.

You should check out some real full-text index add-ons, like contrib/tsearch or
construct your own using your imagination plus contrib/intarray and contrib/intagg  :)

---------------
Hannu






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

Предыдущее
От:
Дата:
Сообщение: Re:
Следующее
От: "ir. F.T.M. van Vugt bc."
Дата:
Сообщение: Re: v7.2.3 versus v7.3 -> huge performance penalty for JOIN with UNION