Re: How to boost performance of queries containing pattern matching characters

From: "Gnanakumar" <gnanam(at)zoniac(dot)com>
To: "'Richard Huxton'" <dev(at)archonet(dot)com>
Cc: <pgsql-performance(at)postgresql(dot)org>
Subject: Re: How to boost performance of queries containing pattern matching characters
Date: 2011-02-14 07:46:07
Message-ID: 004801cbcc1b$3f1d4fe0$bd57efa0$@com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

> If you really need to match all those options, you can't use an index. A
> substring-matching index would need to have multiple entries per
> character per value (since it doesn't know what you will search for).
> The index-size becomes unmanageable very quickly.

> That's why I asked what you really wanted to match.
To be more specific, in fact, our current application allows to delete
email(s) with a minimum of 3 characters. There is a note/warning also given
for application Users' before deleting, explaining the implication of this
delete action (partial & case-insensitive, and it could be wide-ranging
too).

> So, I'll ask again: do you really want to match all of those options?
Yes, as explained above, I want to match all those.

In response to

Responses

Browse pgsql-performance by date

  From Date Subject
Next Message Richard Huxton 2011-02-14 07:49:54 Re: How to boost performance of queries containing pattern matching characters
Previous Message Richard Huxton 2011-02-14 07:39:33 Re: How to boost performance of queries containing pattern matching characters