Re: Problem with LIKE-Performance

Поиск
Список
Период
Сортировка
От Guido Neitzer
Тема Re: Problem with LIKE-Performance
Дата
Msg-id F2B21A42-871E-4C1A-9631-1076FE642B97@pharmaline.de
обсуждение исходный текст
Ответ на Re: Problem with LIKE-Performance  ("Tarabas (Manuel Rorarius)" <tarabas@tarabas.de>)
Список pgsql-performance
On 18.04.2006, at 17:16 Uhr, Tarabas (Manuel Rorarius) wrote:

> Is there any way to speed the like's up with a different locale than C
> or to get an order by in a different Locale although using the
> default C locale?

Sure. Just create the index with

create index <tabname>_<column>_index on <tabname> (<column>
varchar_pattern_ops);

Than you can use something like

select * from <table> where <column> like 'Something%';

Remember that an index can't be used for queries with '%pattern%'.

cug

Вложения

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

Предыдущее
От: REISS Thomas DSIC DESP
Дата:
Сообщение: Re: Problem with LIKE-Performance
Следующее
От: "Tarabas (Manuel Rorarius)"
Дата:
Сообщение: Re: [bulk] RE: Problem with LIKE-Performance