Re: Slow search.. quite clueless

From: Oleg Bartunov <oleg(at)sai(dot)msu(dot)su>
To: Yonatan Ben-Nes <da(at)canaan(dot)co(dot)il>
Cc: armtuk(at)gmail(dot)com, postgresql(at)philip(dot)pjkh(dot)com, olly(at)survex(dot)com, qnex42(at)gmail(dot)com, gabor(at)nekomancer(dot)net, pgsql-general(at)postgresql(dot)org
Subject: Re: Slow search.. quite clueless
Date: 2005-09-26 17:48:37
Message-ID: Pine.GSO.4.63.0509262137260.27150@ra.sai.msu.su
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Mon, 26 Sep 2005, Yonatan Ben-Nes wrote:

> Hi again everyone,
>
> Oleg I tried tsearch2 and happily it does work wonderfully for me returning
> results extremly fast and actually its working even better then I wanted with
> all of those neat features like: lexem, weight & stop words.
>
> I got only one problem which is when I want the results to be ordered by a
> diffrent field (like print INT field) it takes quite alot of time for it to
> do it if the query can return lots of results (for example search for the
> word "computer") and thats even if I limit the results.
> The best way to improve its speed for such quereies (that I've found...) is
> to create an index on the field which I want to order by and using it CLUSTER
> the table, after the clustering I drop the the index so it won't be used when
> I run queries with ORDER BY on that field, that seem to improve the speed, if
> anyone got a better idea ill be glad to hear it.

what's your actual query ? have you tried multicolumn index ?

>
> Anyway thanks alot everyone!
> Ben-Nes Yonatan
>

Regards,
Oleg
_____________________________________________________________
Oleg Bartunov, sci.researcher, hostmaster of AstroNet,
Sternberg Astronomical Institute, Moscow University (Russia)
Internet: oleg(at)sai(dot)msu(dot)su, http://www.sai.msu.su/~megera/
phone: +007(095)939-16-83, +007(095)939-23-83

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Cristian Prieto 2005-09-26 17:49:59 Re: Index use in BETWEEN statement...
Previous Message Raj Gupta 2005-09-26 17:37:32 Re: Error migrating from 7.4.3 to 8.0.3