Re: [PERFORM] Improving query performance

2007-03-02 Thread David Leangen
> > And this is the actual query: > > I think you need to look into full-text indexing (see tsearch2). Thanks, Tom. Yes, we know this. This is just a temporary fix that we needed to get up today for biz reasons. Implementing full-text searching within a few short hours was out of the question.

Re: [PERFORM] Improving query performance

2007-03-01 Thread Tom Lane
David Leangen <[EMAIL PROTECTED]> writes: > And this is the actual query: > SELECT COUNT(t0.ID) FROM public.MY_TABLE t0 > WHERE ((POSITION('adenosine cyclic 35-monophosphate' IN LOWER(t0.TITLE)) > - 1) >=0 OR > (POSITION('adenosine cyclic 55-monophosphate' IN LOWER(t0.TEXT)) - 1) >= > 0 OR > (P

[PERFORM] Improving query performance

2007-03-01 Thread David Leangen
Hello! I'm new to performance tuning on postgres. I've read the docs on the posgtres site, as well as: http://www.revsys.com/writings/postgresql-performance.html http://www.powerpostgresql.com/PerfList However, my query is really slow, and I'm not sure what the main cause could be, as there