From: admin <admin@wtbwts.com>
To: Peter Eisentraut <peter_e@gmx.net>
Cc: pgsql-sql@postgresql.org
Subject: Re: [SQL] making 'like' queries quicker
Date: Sat, 18 Dec 1999 14:52:21 +0000 (GMT)
Message-ID: <Pine.BSF.4.10.9912181451230.11925-100000@server.b0x.com> (raw)
In-Reply-To: <Pine.LNX.4.21.9912181710350.356-100000@localhost.localdomain>
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. :(
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-sql@postgresql.org
Cc: admin@wtbwts.com, peter_e@gmx.net
Subject: Re: [SQL] making 'like' queries quicker
In-Reply-To: <Pine.BSF.4.10.9912181451230.11925-100000@server.b0x.com>
References: <Pine.LNX.4.21.9912181710350.356-100000@localhost.localdomain> <Pine.BSF.4.10.9912181451230.11925-100000@server.b0x.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox