Re: efficiency of wildcards at both ends

Поиск
Список
Период
Сортировка
От Lonni J Friedman
Тема Re: efficiency of wildcards at both ends
Дата
Msg-id CAP=oouGs2wCLYxNT_hhG44u-2e40k6_iCmRtTn-x8sSXqvSxBA@mail.gmail.com
обсуждение исходный текст
Ответ на efficiency of wildcards at both ends  (Sam Z J <sammyjiang721@gmail.com>)
Список pgsql-general
On Wed, Jun 20, 2012 at 10:10 AM, Sam Z J <sammyjiang721@gmail.com> wrote:
> Hi all
>
> I'm curious how is wildcards at both ends implemented, e.g. LIKE '%str%'
> How efficient is it if that's the only search criteria against a large
> table? how much does indexing the column help and roughly how much more
> space is needed for the index?
>
> if the answers are too long, please point me to the relavant text =D

My limited understanding is that any time you need to resort to using
wildcards, indices are never used, and you're falling back to using
the inefficient table scan.

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

Предыдущее
От: utsav
Дата:
Сообщение: Re: RETURNING MORE THAN ONE CUSTOM TYPE FROM FUNCTION
Следующее
От: Andy Colson
Дата:
Сообщение: Re: efficiency of wildcards at both ends