Re: [SQL] making 'like' queries quicker

Поиск
Список
Период
Сортировка
Искать
От
Peter Eisentraut
Тема
Re: [SQL] making 'like' queries quicker
Дата
Msg-id
Pine.LNX.4.21.9912181710350.356-100000@localhost.localdomain
Ответ на
Список
Дерево обсуждения
making 'like' queries quicker admin <admin@wtbwts.com>
Re: [SQL] making 'like' queries quicker Peter Eisentraut <peter_e@gmx.net>
Re: [SQL] making 'like' queries quicker admin <admin@wtbwts.com>
Re: [SQL] making 'like' queries quicker "tjk@tksoft.com" <tjk@tksoft.com>
Re: [SQL] making 'like' queries quicker Tom Lane <tgl@sss.pgh.pa.us>
Re: [SQL] making 'like' queries quicker "tjk@tksoft.com" <tjk@tksoft.com>
On 1999-12-17, admin mentioned:

> Is there a way to make queries using the 'like' operator quicker, more
> specifically for queries that look like:
> select name from table where name like '%abc%';

These kinds of queries (where the search string starts with a wildcard)
never use indexes, so you're stuck with the sequential scan. A faster
computer is probably your best option. :(

-- 
Peter Eisentraut                  Sernanders väg 10:115
peter_e@gmx.net                   75262 Uppsala
http://yi.org/peter-e/            Sweden



В списке pgsql-sql по дате отправления
От: Ranjan Polavarapu
Дата:
Сообщение: Oracle Pro*c books
От: Peter Eisentraut
Дата:
Сообщение: Re: [SQL] count() question
FAQ