Re: LC_COLLATE and index usage

From: Ralph Graulich <maillist(at)shauny(dot)de>
To: Karsten Hilbert <Karsten(dot)Hilbert(at)gmx(dot)net>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: LC_COLLATE and index usage
Date: 2003-05-08 00:27:11
Message-ID: Pine.LNX.4.53.0305080223290.17769@shauny.shauny.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi Karsten,

> Question seconded (and tacit suggestion for a TODO item) on
> behalf of GnuMed (www.gnumed.org)

Depending on how your LIKE searches look like, you can use a little work
around, which improves speed dramatically. In case you need to search like
"<String>%", you can use a second table containing each possible
combination of the search string, a fixed length field and JOIN that
helper table.

So you can change your LIKE search to a search for a string of fixed
length.

Kind regards
... Ralph ...

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Alvaro Herrera 2003-05-08 01:22:34 Re: LC_COLLATE and index usage
Previous Message Karsten Hilbert 2003-05-08 00:24:48 Re: LC_COLLATE and index usage