From: | "Ravi T Ramachandra" <ravi(dot)ramachandra(at)wipro(dot)com> |
---|---|
To: | <pgsql-admin(at)postgresql(dot)org> |
Cc: | "Sandeep Bhasin" <sandeep(dot)bhasin(at)wipro(dot)com> |
Subject: | Performance Issues |
Date: | 2003-09-08 06:13:42 |
Message-ID: | 4223A04BF7D1B941A25246ADD0462FF5CD7C15@blr-m3-msg.wipro.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-admin |
Hi,
I recently setup postgres on a Linux box with 4GB Ram and 2.5 GHz
processor. We have created a database with 1.5 million rows in a
table. When we try to select rows from the table, it is taking enormous
time with the default configuration. It takes 2 to 3 seconds to select
1 row that has been selected with indexed columns.
SELECT * FROM TABLE A WHERE COL1 = 1 AND COL2 = 'ABC'.
We have created index definition as follows
CREATE INDEX IDX ON A(COL1, COL2);
Explain on the above statement shows it is sequential scan. The
process size for the postmaster shows as 4MB (is this normal ?)
Thanks for your help in advance,
Regards,
Ravi
**************************Disclaimer************************************
Information contained in this E-MAIL being proprietary to Wipro Limited is
'privileged' and 'confidential' and intended for use only by the individual
or entity to which it is addressed. You are notified that any use, copying
or dissemination of the information contained in the E-MAIL in any manner
whatsoever is strictly prohibited.
***************************************************************************
From | Date | Subject | |
---|---|---|---|
Next Message | Vasilis Ventirozos | 2003-09-08 07:32:51 | Are 50 million rows a problem for postgres ? |
Previous Message | Ramesh PAtel | 2003-09-08 05:56:20 | Problem about Backup |