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.

[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

Re: [PERFORM] Delete operation VERY slow...

2006-06-16 Thread David Leangen
2006-06-16 at 12:52 +0530, Gourish Singbal wrote: > > David, > > Truncate table would be a good idea if u want to delete all the data > in the table. > You need not perform vacuum in this case since there are no dead rows > created. > > ~gourish > > > On

[PERFORM] Delete operation VERY slow...

2006-06-16 Thread David Leangen
Hello! I am trying to delete an entire table. There are about 41,000 rows in the table (based on count(*)). I am using the SQL comment: delete from table; The operation seems to take in the order of hours, rather than seconds or minutes. "Explain delete from table" gives me: