Re: Optimizing performance of a like '%...%' condition

Поиск
Список
Период
Сортировка
От Chris
Тема Re: Optimizing performance of a like '%...%' condition
Дата
Msg-id 43F14140.8050005@gmail.com
обсуждение исходный текст
Список pgsql-performance
> Indexing the t_name.name field, I can increase speed, but only if I
> restrict my search to something like :
>
> select *
> from t_name
> where t_name.name like 'my_search%'
>
> (In this case it takes generally less than 1 second)
>
>
> My question : Are there algorithms or tools that can speed up such a
> type of queries ("like" condition begining with a "%" symbol) ?

Apart from indexing the field you could use full text indexing. See
http://techdocs.postgresql.org/techdocs/fulltextindexing.php


What other types of queries are you running that you want to speed up ?

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

Предыдущее
От: "Mark Liberman"
Дата:
Сообщение: Re: SQL Function Performance
Следующее
От: martial.bizel@free.fr
Дата:
Сообщение: Re: out of memory