RE: [GENERAL] non-case sensitive searches

Поиск
Список
Период
Сортировка
От Jackson, DeJuan
Тема RE: [GENERAL] non-case sensitive searches
Дата
Msg-id F10BB1FAF801D111829B0060971D839F5DC750@cpsmail
обсуждение исходный текст
Ответы RE: [GENERAL] non-case sensitive searches  (Gregory Maxwell <greg@z.ml.org>)
Список pgsql-general
> > > You can also use regexp expression like this :
> > >
> > >     SELECT * FROM photos WHERE keywords ~* '.*$cat_name.*';
> > >
> > > it works fine.
> >
> >
> > Thanks for the tip. Any recommendations as to which would
> be faster when
> > searching about 2,000 records or so..
>
> LIKE is faster, but with 2,000 records, you won't be able to tell the
> difference. It takes a blink.
>
> --Gene

And remember unless you use full text indexing (which is expensive) you
won't have indexing on that search (for either the LIKE or regex).
    -DEJ

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

Предыдущее
От: "Jackson, DeJuan"
Дата:
Сообщение: RE: [GENERAL] PRIMARY/FOREIGN KEY statements
Следующее
От: "Paolo P. Lo Giacco"
Дата:
Сообщение: Delphi+Postgress