ILIKE '%term%' and Performance - Mailing list pgsql-general

From CSN
Subject ILIKE '%term%' and Performance
Date
Msg-id 20051205194429.14897.qmail@web52909.mail.yahoo.com
Whole thread Raw
Responses Re: ILIKE '%term%' and Performance
List pgsql-general
I'm thinking of enabling searches that use queries like "select * from items where title ilike
'%term%'". The items table has tens of thousands of rows. Is it worth worrying about the
performance of such a query (since, if I'm not mistaken, it will never use indices). If it is,
what's the best option - use tsearch? How does tsearch (or whatever else) compare performance-wise
to not using it, or to typical index-based queries for that matter?

thanks
csn



__________________________________
Start your day with Yahoo! - Make it your home page!
http://www.yahoo.com/r/hs

pgsql-general by date:

Previous
From: Jaime Casanova
Date:
Subject: Re: EXPLAIN SELECT .. does not return
Next
From: Tom Lane
Date:
Subject: Re: EXPLAIN SELECT .. does not return