From: Kishore B <kishorebh@gmail.com>
To: pgsql-performance@postgresql.org
Subject: Need help in setting optimal configuration for a huge database.
Date: Sun, 23 Oct 2005 02:45:25 +0530
Message-ID: <42567e060510221415r2516523l4c3f9b42dee91a09@mail.gmail.com> (raw)
Hi All,
I am Kishore doing freelance development of J2EE applications.
We switched to use Postgresql recently because of the advantages it has
over other commercial databases. All went well untill recently, untill we
began working on an application that needs to maintain a huge database.
I am describing the problem we are facing below. Can you please take a look
at the case, and help me in configuring the PostgreSQL.
We have only two tables, one of which contains 97% of the data and the
other table which contains 2.8% of the data. All other contain only the
remaining 0.2% of data and are designed to support these two big tables.
Currently we have 9 million of records in the first table and 0.2 million of
records in the second table.
We need to insert into the bigger table almost for every second , through
out the life time. In addition, we receive at least 200,000 records a day at
a fixed time.
We are facing a* critical situation because of the performance of the **
database**.* Even a basic query like select count(*) from bigger_table is
taking about 4 minutes to return.
The following is the system configuration.
Database *:* Postgresql 7.3
OS : Redhat Linux
Processor : Athlon,
Memory : 2 GB
We are expecting that at least 200 active connections need to be maintained
through out the day.
Can any you please suggest the best configuration to satisfy the above
requirements?
Thanks in advance.
Thank you,
Kishore.
Attachments:
postgresql.conf (application/octet-stream, 5.4K) download
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: kishorebh@gmail.com, pgsql-performance@postgresql.org
Subject: Re: Need help in setting optimal configuration for a huge database.
In-Reply-To: <42567e060510221415r2516523l4c3f9b42dee91a09@mail.gmail.com>
References: <42567e060510221415r2516523l4c3f9b42dee91a09@mail.gmail.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox