Re: [SQL] making 'like' queries quicker - Mailing list pgsql-sql

From Peter Eisentraut
Subject Re: [SQL] making 'like' queries quicker
Date
Msg-id Pine.LNX.4.21.9912181710350.356-100000@localhost.localdomain
Whole thread Raw
In response to making 'like' queries quicker  (admin <admin@wtbwts.com>)
Responses Re: [SQL] making 'like' queries quicker
List pgsql-sql
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 by date:

Previous
From: "Ranjan Polavarapu"
Date:
Subject: Oracle Pro*c books
Next
From: Peter Eisentraut
Date:
Subject: Re: [SQL] count() question