Re: Like search performance.

Поиск
Список
Период
Сортировка
От Nikolaus Dilger
Тема Re: Like search performance.
Дата
Msg-id 20030430100829.9198.h014.c001.wm@mail.dilger.cc.criticalpath.net
обсуждение исходный текст
Ответ на Like search performance.  ("Diehl, Jeffrey" <jdiehl@sandia.gov>)
Список pgsql-performance
Jeffrey,

The best thing you can do is to have the wildcard % as
late as possible in your search condition.
So do like 'd%' instead of like '%d%' if you can.

Regards,
Nikolaus


On Wed, 30 Apr 2003 10:34:40 -0600, "Diehl, Jeffrey"
wrote:

>
> Hi all,
>
> I have a fairly large table with a char(20) field in
it
> which I search on
> quite a bit.  The problem is that I tend to do a lot
of
> "...where field like '%-d%'" type searches on this
> field.
>
> Is there any to speed up this type of search?
>
> TIA,
>
> Mike Diehl.
>
>
> ---------------------------(end of
> broadcast)---------------------------
> TIP 4: Don't 'kill -9' the postmaster


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

Предыдущее
От: "Diehl, Jeffrey"
Дата:
Сообщение: Like search performance.
Следующее
От: SZUCS Gábor
Дата:
Сообщение: Re: Like search performance.