ILIKE '%term%' and Performance

From: CSN <cool_screen_name90001(at)yahoo(dot)com>
To: "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>
Subject: ILIKE '%term%' and Performance
Date: 2005-12-05 19:44:29
Message-ID: 20051205194429.14897.qmail@web52909.mail.yahoo.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2005-12-05 19:54:01 Re: EXPLAIN SELECT .. does not return
Previous Message Jaime Casanova 2005-12-05 19:38:39 Re: EXPLAIN SELECT .. does not return