Re: index is not using?

Поиск
Список
Период
Сортировка
От Scott Marlowe
Тема Re: index is not using?
Дата
Msg-id dcc563d11002090033h758f608di7ea512f9074fc00a@mail.gmail.com
обсуждение исходный текст
Ответ на index is not using?  (AI Rumman <rummandba@gmail.com>)
Список pgsql-performance
On Tue, Feb 9, 2010 at 12:55 AM, AI Rumman <rummandba@gmail.com> wrote:
> I have created a index
> create index leadaddress_phone_idx on
> leadaddress(regexp_replace((phone)::text, '[^0-9]*'::text, ''::text,
> 'g'::text));
>
> But the index is not using.

like '%yada'

isn't capable of using an index.  If it's left anchored:

like 'yada%'

it can.

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

Предыдущее
От: AI Rumman
Дата:
Сообщение: index is not using?
Следующее
От: Guillaume Lelarge
Дата:
Сообщение: Re: [GENERAL] index is not using