| От | Joshua D. Drake |
|---|---|
| Тема | Re: Best way to index large text/varchar fields |
| Дата | |
| Msg-id | 4489A0CF.2080309@commandprompt.com обсуждение исходный текст |
| Ответ на | Best way to index large text/varchar fields ("Chris Hoover" <revoohc@gmail.com>) |
| Список | pgsql-admin |
Chris Hoover wrote:
> In 8.1, what is the best way to index large text/varchar fields for wild
> card searches?
>
> I am getting good number of queries being submitted for reporting
> purposes that are doing the following - where <text/varchar field> like
> '%some phrase%' and ....
> Is there a good way to index these fields so that the db engine will use
> and index?
If you are indeed using phrases, and thus paragraphs of text, you should
look into Tsearch2.
Joshua D. Drake
>
> Thanks,
>
> Chris
--
=== The PostgreSQL Company: Command Prompt, Inc. ===
Sales/Support: +1.503.667.4564 || 24x7/Emergency: +1.800.492.2240
Providing the most comprehensive PostgreSQL solutions since 1997
http://www.commandprompt.com/
В списке pgsql-admin по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера