Re: [SQL] making 'like' queries quicker

From: admin <admin(at)wtbwts(dot)com>
To: Peter Eisentraut <peter_e(at)gmx(dot)net>
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: [SQL] making 'like' queries quicker
Date: 1999-12-18 14:52:21
Message-ID: Pine.BSF.4.10.9912181451230.11925-100000@server.b0x.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Whatabout queries which only end with a wildcard? is there any way to
accelerate such a query?

> > 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. :(

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Peter Eisentraut 1999-12-18 16:13:41 Re: [SQL] count() question
Previous Message Ranjan Polavarapu 1999-12-18 12:28:07 Oracle Pro*c books