Re: ignore case in where clause

Поиск
Список
Период
Сортировка
От Guillaume Lelarge
Тема Re: ignore case in where clause
Дата
Msg-id 1332448722.2339.10.camel@localhost.localdomain
обсуждение исходный текст
Ответ на ignore case in where clause  ("Edward W. Rouse" <erouse@comsquared.com>)
Ответы Re: ignore case in where clause  ("Edward W. Rouse" <erouse@comsquared.com>)
Список pgsql-sql
On Thu, 2012-03-22 at 16:26 -0400, Edward W. Rouse wrote:
> I am currently using lower(column) = '' for matching case insensitive. I
> know that there are ways to do this with regular expressions too. I recently
> noticed that including even one lower causes severe performance issues (from
> 290ms to over 80Kms).
> 

Probably because it cannot use the index anymore. Try creating an index
on lower(column), and see if it helps.


-- 
Guillaume
http://blog.guillaume.lelarge.info
http://www.dalibo.com



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

Предыдущее
От: "Edward W. Rouse"
Дата:
Сообщение: ignore case in where clause
Следующее
От: "Edward W. Rouse"
Дата:
Сообщение: Re: ignore case in where clause