Re: [SQL] Very low performance on table with only 298 rows

2005-04-14 Thread PFC
nbeweb=> EXPLAIN ANALYZE select count(*) from onp_web_index; Total runtime: 179748.993 ms WOW. It's possible your table is bloated. What version of PG are you using ? VACUUM FULL ANALYZE VERBOSE onp_web_index if it solves your problem, good, else post the resul

Re: [SQL] Very low performance on table with only 298 rows

2005-04-14 Thread Andreas Joseph Krogh
On Thursday 14 April 2005 13:28, Richard Huxton wrote: > Andreas Joseph Krogh wrote: > > nbeweb=> EXPLAIN select count(*) from onp_web_index; > > QUERY PLAN > > - > > Hi all. > > I have a pr

Re: [SQL] Very low performance on table with only 298 rows

2005-04-14 Thread Richard Huxton
Andreas Joseph Krogh wrote: nbeweb=> EXPLAIN select count(*) from onp_web_index; QUERY PLAN - Hi all. I have a problem with a table which only has 298 rows in it. A select count(*) takes fo

[SQL] Very low performance on table with only 298 rows

2005-04-14 Thread Andreas Joseph Krogh
nbeweb=> EXPLAIN select count(*) from onp_web_index; QUERY PLAN - Hi all. I have a problem with a table which only has 298 rows in it. A select count(*) takes forever and CTRL-C also takes