From: Rod Taylor <rbt@rbt.ca>
To: Grega Bremec <grega.bremec@noviforum.si>
Cc: Postgresql Performance <pgsql-performance@postgresql.org>
Subject: Re: Wildcard searches & performance question
Date: 27 May 2003 16:06:26 -0400
Message-ID: <1054065986.93507.43.camel@jester> (raw)
In-Reply-To: <20030527210908.A571@elbereth.noviforum.si>
References: <20030527210908.A571@elbereth.noviforum.si>
> feasible in such cases? Or in other words, can I somehow optimize LIKE and
> regexp queries that start with a wildcard?
If they start with a wildcard, but end in character data you could
reverse the string and index that...
If they start and end with a wildcard, your best bet is a full text
indexing solution (various contrib modules).
--
Rod Taylor <rbt@rbt.ca>
PGP Key: http://www.rbt.ca/rbtpub.ascAttachments:
signature.asc (application/pgp-signature, 186B) download
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-performance@postgresql.org
Cc: rbt@rbt.ca, grega.bremec@noviforum.si
Subject: Re: Wildcard searches & performance question
In-Reply-To: <1054065986.93507.43.camel@jester>
References: <20030527210908.A571@elbereth.noviforum.si> <1054065986.93507.43.camel@jester>
* 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