What index for 'like (%keyword%)' ???

From: "Priem, Alexander" <ap(at)cict(dot)nl>
To: pgsql-performance(at)postgresql(dot)org
Subject: What index for 'like (%keyword%)' ???
Date: 2004-03-31 09:51:02
Message-ID: 2A07EC2D0BC2774AAD6F74769F60D52A08329A@ahmose.cict_ad.nl
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

Hi everyone,

I am building a query which uses a clause like "Where doc_description like
'%keyword%'". I know a normal index won't be of any use here, but since the
table in question will get fairly big, I do want to use an index.

Can anyone give me some advise on what kind of index I can use here? Or
shouldn't I use one in this case?

Kind regards,
Alexander Priem.

Responses

Browse pgsql-performance by date

  From Date Subject
Next Message Richard Huxton 2004-03-31 12:07:54 Re: What index for 'like (%keyword%)' ???
Previous Message Richard Huxton 2004-03-31 08:33:24 Re: select slow?