Re: [SQL] making 'like' queries quicker

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: admin <admin(at)wtbwts(dot)com>
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: [SQL] making 'like' queries quicker
Date: 1999-12-18 16:13:53
Message-ID: Pine.LNX.4.21.9912181710350.356-100000@localhost.localdomain
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(at)gmx(dot)net 75262 Uppsala
http://yi.org/peter-e/ Sweden

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message tjk@tksoft.com 1999-12-18 21:53:51 Re: [SQL] making 'like' queries quicker
Previous Message Peter Eisentraut 1999-12-18 16:13:41 Re: [SQL] count() question