From: | Jean-Michel Pouré <jmpoure(at)poure(dot)com> |
---|---|
To: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: Tsearch2 / Create rule on select |
Date: | 2007-03-09 11:32:01 |
Message-ID: | 1173439921.15269.6.camel@localhost |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
Le vendredi 09 mars 2007 à 10:58 +0100, Magnus Hagander a écrit :
> No idea. Assuming you want to do it beforehand. otherwise, just create
> the index and see how large it got?
Thank you for your comments. I will add TSeach2 support to phpBB 3.x
soon.
I had incredible response time on simple queries on more than plain-text
200.000 row. About 1 millisecond! Incredible but true.
explain analyse verbose SELECT * FROM phpbb_posts_text WHERE idxfti @@
'jmp'::tsquery limit 100;
Limit (cost=0.00..444.47 rows=100 width=934) (actual time=0.046..0.824
rows=100 loops=1)
-> Index Scan using idxfti_idx on phpbb_posts_text
(cost=0.00..1053.38 rows=237 width=934) (actual time=0.040..0.418
rows=100 loops=1)
Index Cond: (idxfti @@ '''jmp'''::tsquery)
[color=red]Total runtime: 1.068 ms
TSearch2 will be used by wikimedia shortly (it is supported in beta
version).
IMHO, it would be better if PostgreSQL parser was able to find Tseach
indexes alone, rewritting the query automatically. Maybe it is on the
radar list of hackers.
Kind regards,
Jean-Michel
From | Date | Subject | |
---|---|---|---|
Next Message | Don Lavelle | 2007-03-09 12:03:12 | Beginner's Questions |
Previous Message | Magnus Hagander | 2007-03-09 11:21:21 | Re: Can i run pg_ctl under Administrator account ? |