Received: from localhost (maia-2.hub.org [200.46.204.187]) by postgresql.org (Postfix) with ESMTP id A78AE9FB88F for ; Thu, 26 Apr 2007 08:53:49 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.187]) (amavisd-maia, port 10024) with ESMTP id 55501-06 for ; Thu, 26 Apr 2007 08:53:41 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 Received: from mail.metronet.co.uk (mail.metronet.co.uk [213.162.97.75]) by postgresql.org (Postfix) with ESMTP id B59969FB586 for ; Thu, 26 Apr 2007 08:53:46 -0300 (ADT) Received: from server3.office.archonet.com (84-51-143-99.archon037.adsl.metronet.co.uk [84.51.143.99]) by smtp.metronet.co.uk (MetroNet Mail) with ESMTP id 3EFDB73DF0; Thu, 26 Apr 2007 12:53:32 +0100 (BST) Received: from [192.168.1.36] (dell36.office.archonet.com [192.168.1.36]) by server3.office.archonet.com (Postfix) with ESMTP id 7D5FE2740E8; Thu, 26 Apr 2007 12:53:32 +0100 (BST) Message-ID: <463092BC.60505@archonet.com> Date: Thu, 26 Apr 2007 12:53:32 +0100 From: Richard Huxton User-Agent: Thunderbird 2.0.0.0 (X11/20070326) MIME-Version: 1.0 To: Shohab Abdullah Cc: pgsql-performance@postgresql.org Subject: Re: Fw: PostgreSQL Performance Tuning References: In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200704/424 X-Sequence-Number: 24301 Please try to keep postings to one mailing list - I've replied to the performance list here. Shohab Abdullah wrote: > Dear, > We are facing performance tuning problem while using PostgreSQL Database > over the network on a linux OS. > Our Database consists of more than 500 tables with an average of 10K > records per table with an average of 20 users accessing the database > simultaneously over the network. Each table has indexes and we are > querying the database using Hibernate. > The biggest problem is while insertion, updating and fetching of records, > ie the database performance is very slow. It take a long time to respond > in the above scenario. > Please provide me with the tuning of the database. I am attaching my > postgresql.conf file for the reference of our current configuration You haven't provided any details on what version of PG you are using, what hardware you are using, whether there is a specific bottleneck (disk, memory, cpu) or certain queries. Without that, no-one can suggest useful settings. You might find this document a good place to start: http://www.powerpostgresql.com/PerfList/ HTH -- Richard Huxton Archonet Ltd