Re: Re: LIKE optimization

Поиск
Список
Период
Сортировка
От Nabil Sayegh
Тема Re: Re: LIKE optimization
Дата
Msg-id 3A65B04E.5F82397B@sayegh.de
обсуждение исходный текст
Ответ на LIKE optimization  (Nabil Sayegh <nsmail@sayegh.de>)
Список pgsql-novice
rob wrote:
>
> Then the application need not append anything for blank search fields.  It's
> just complicating things.

That's what I'm doing, I just wondered why ... LIKE '%' ... wasn't
skipped automagically.
I use templates in my webinterface and it would be much more convenient
to just drop the (user-)input into
the select statement. Now I have to do fall differentiation which costs
time (money) and maintenance.

I'm almost sure that it's my fault (wrong/missing indices etc.). But
LIKE '%' should be ignored
by the optimizer (at least on NOT NULL attributes).

cu

--
 Nabil Sayegh
 GPG-Key available at http://www.sayegh.de
 (see http://www.gnupg.org for details)

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

Предыдущее
От: "rob"
Дата:
Сообщение: Re: LIKE optimization
Следующее
От: Peter Rodriguez
Дата:
Сообщение: Table recognition