| От | Leandro Fanzone |
|---|---|
| Тема | Index on wildcard text search |
| Дата | |
| Msg-id | 3CC85565.FD27C3A@hasar.com обсуждение исходный текст |
| Ответы |
Re: Index on wildcard text search
|
| Список | pgsql-novice |
Excuse me if this is a silly question. Say I have a table with a text
field, where I perform search operations always in the following form:
SELECT * from table where LOWER(textfield) like 'X%';
Where "X" is one or more letters ("case insensitive begins with").
Does help in some way if I create a binary tree index on that field? I
mean, having a btree index to search with, "begins with" sounds easier,
but the LOWER operation probably invalidates its use. If this has no
sense, do you have another suggestion for the case?
Thank you,
Leandro Fanzone
Compañía HASAR
В списке pgsql-novice по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера