From: | Hannu Krosing <hannu(at)tm(dot)ee> |
---|---|
To: | typea(at)l-i-e(dot)com |
Cc: | pgsql-performance(at)postgresql(dot)org, rbt(at)rbt(dot)ca |
Subject: | Re: |
Date: | 2002-12-02 21:18:14 |
Message-ID: | 1038863893.1942.3.camel@rh72.home.ee |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-performance |
typea(at)l-i-e(dot)com kirjutas T, 03.12.2002 kell 01:45:
> Explains were posted previously, but I'll do a couple more.
>
> At its simplest, this takes 30 seconds:
>
> explain select article.* from article where lower(text) like '%einstein%';
> NOTICE: QUERY PLAN:
>
> Seq Scan on article (cost=0.00..1155.01 rows=1 width=216)
searches with LIKE use indexes only when the like expression starts
with a string (like 'einstein%') and even then only if in C locale.
You should check out some real full-text index add-ons, like contrib/tsearch or
construct your own using your imagination plus contrib/intarray and contrib/intagg :)
---------------
Hannu
From | Date | Subject | |
---|---|---|---|
Next Message | ir. F.T.M. van Vugt bc. | 2002-12-02 23:51:03 | Re: v7.2.3 versus v7.3 -> huge performance penalty for JOIN with UNION |
Previous Message | typea | 2002-12-02 20:45:43 | Re: |