X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id 6737B9DC806 for ; Wed, 22 Feb 2006 10:24:20 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 23913-01 for ; Wed, 22 Feb 2006 10:24:22 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey- Received: from ptb-relay03.plus.net (ptb-relay03.plus.net [212.159.14.214]) by postgresql.org (Postfix) with ESMTP id DC2D29DC877 for ; Wed, 22 Feb 2006 10:24:14 -0400 (AST) Received: from [213.162.97.75] (helo=mail.metronet.co.uk) by ptb-relay03.plus.net with esmtp (Exim) id 1FBuug-0005D8-5K; Wed, 22 Feb 2006 14:24:18 +0000 Received: from mainbox.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 0D09740DA44; Wed, 22 Feb 2006 14:22:02 +0000 (GMT) Received: from [192.168.1.17] (client17.office.archonet.com [192.168.1.17]) by mainbox.archonet.com (Postfix) with ESMTP id D7CDE15EA6; Wed, 22 Feb 2006 14:22:01 +0000 (GMT) Message-ID: <43FC7389.4050408@archonet.com> Date: Wed, 22 Feb 2006 14:22:01 +0000 From: Richard Huxton User-Agent: Thunderbird 1.5 (X11/20051201) MIME-Version: 1.0 To: "Chethana, Rao (IE10)" Cc: pgsql-performance@postgresql.org Subject: Re: --pls reply ASAP References: <544485BC51F81A41AC1A72CFA690136552384E@AZ18EV805.global.ds.honeywell.com> In-Reply-To: <544485BC51F81A41AC1A72CFA690136552384E@AZ18EV805.global.ds.honeywell.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.121 required=5 tests=[AWL=0.121] X-Spam-Score: 0.121 X-Spam-Level: X-Archive-Number: 200602/340 X-Sequence-Number: 17326 Chethana, Rao (IE10) wrote: > Hello! > > Thank you for responding quickly. I really need ur help. Please make sure you cc: the list - I don't read this inbox regularly. > Sir, here r the answers for ur questions, please do tell me what to do > next(regarding increasing performance of postgresql), so that I can > proceed further. > > How are you using PostgreSQL? > We r using 7.4.3 with max of (512*6) around 3000 records. Max of what are (512*6)? Rows? Tables? Sorry - I don't understand what you mean here. Oh, and upgrade to the latest release of 7.4.x - there are important bugfixes. > How many concurrent users? > It configures for 100, but we r using 4 or 5 only. > > Mostly updates or small selects or large summary reports? > Update,delete,insert operations. > > What hardware do you have? > X86 based, 233 MHz, 256 MB RAM. Hmm - not blazing fast, but it'll certainly run on that. > What configuration changes have you made? > No changes, we've used default settings. That will need changing. As Gourish suggested in another reply, read the notes here: http://www.varlena.com/varlena/GeneralBits/Tidbits/perf.html You'll want to be careful with the memory settings given that you've only got 256MB to play with. Don't allocate too much to PostgreSQL itself, let the o.s. cache some files for you. > Are you having problems with all queries or only some? > Only some queries, particularly foreign key. Are you happy that there are indexes on the referring side of the foreign key where necessary? The primary keys you reference will have indexes on them, the other side will not unless you add them yourself. > Have you checked the plans for these with EXPLAIN ANALYSE? > No. That would be something worth doing then. Find a bad query, run EXPLAIN ANALYSE SELECT ... and post a new question with the output and details of the tables involved. > Have you made sure your tables are vacuumed and analysed? > Yes. Good. With the limited amount of RAM you have, you'll want to use it as efficiently as possible. -- Richard Huxton Archonet Ltd