postgresql performance

From: SPMLINGAM <spmlingam(at)gmail(dot)com>
To: pgsql-performance(at)postgresql(dot)org
Subject: postgresql performance
Date: 2008-03-05 10:27:08
Message-ID: 15847165.post@talk.nabble.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance


Dear Friends,
I have a table with 50 lakhs records, the table has more then 10
fields, i have primary key, i have select query with count(*) without any
condition, it takes 17 seconds.

I have another one query which will do joins with other small tables, it
takes 47 seconds to give output, the result has 2 lakhs records. the
indexing is not used. I have created one index with one field ( which i
used in this query, the field value has duplicates also ).

Now the cpu usage is 4.4%, and waiting for io process .

i have checked the above in the top command.

If i delete that index, then it works fine, now the cpu usage takes more
then 70%, and waiting shows less then 30%.

Can Anyone explain, Why postgres behaves like this.

--
View this message in context: http://www.nabble.com/postgresql-performance-tp15847165p15847165.html
Sent from the PostgreSQL - performance mailing list archive at Nabble.com.

Responses

Browse pgsql-performance by date

  From Date Subject
Next Message petchimuthu lingam 2008-03-05 10:38:00 Confirmação de envio / Sending confirmation (captchaid:13266b111e1d)
Previous Message Moritz Onken 2008-03-05 08:54:35 Re: PostgreSQL performance on a virtual host