X-Original-To: pgsql-performance-postgresql.org@postgresql.org Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id 81CD59FB215 for ; Tue, 29 Aug 2006 12:06:20 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 88098-07 for ; Tue, 29 Aug 2006 12:06:16 -0300 (ADT) X-Greylist: delayed 01:13:19.474725 by SQLgrey- Received: from relay01.is.co.za (relay01.is.co.za [196.35.6.69]) by postgresql.org (Postfix) with ESMTP id 7681A9FB253 for ; Tue, 29 Aug 2006 12:06:11 -0300 (ADT) Received: from relay01.is.co.za (localhost [127.0.0.1]) by relay01.is.co.za (Postfix) with ESMTP id 15CE731470C for ; Tue, 29 Aug 2006 17:06:10 +0200 (SAST) Received: from smtp02.isdsl.net (smtp02.isdsl.net [196.26.208.200]) by relay01.is.co.za (Postfix) with ESMTP id F17553146CA for ; Tue, 29 Aug 2006 17:06:09 +0200 (SAST) Received: from server.svo.co.za (c1-52-10.rrba.isadsl.co.za [196.209.57.52]) by smtp02.isdsl.net (Postfix) with ESMTP id B68002E083 for ; Tue, 29 Aug 2006 17:06:09 +0200 (SAST) Received: from [192.168.0.11] ([192.168.0.11]) by server.svo.co.za with Microsoft SMTPSVC(6.0.3790.1830); Tue, 29 Aug 2006 17:09:57 +0200 Message-ID: <44F457DA.7060200@studentvillage.co.za> Date: Tue, 29 Aug 2006 17:06:02 +0200 From: Willo van der Merwe User-Agent: Thunderbird 1.5.0.5 (Windows/20060719) MIME-Version: 1.0 To: "Joshua D. Drake" Cc: pgsql-performance@postgresql.org Subject: Re: PostgreSQL performance issues References: <44F446B2.2090900@studentvillage.co.za> <000701c6cb7c$0027a820$0a00a8c0@svo.co.za> In-Reply-To: <000701c6cb7c$0027a820$0a00a8c0@svo.co.za> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 29 Aug 2006 15:09:57.0312 (UTC) FILETIME=[3095EC00:01C6CB7D] X-Virus-Scanned: ClamAV using ClamSMTP at relay01.dial-up.net X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.95 tagged_above=0 required=5 tests=AWL, FORGED_RCVD_HELO, ROUND_THE_WORLD X-Spam-Level: X-Archive-Number: 200608/457 X-Sequence-Number: 20642 Joshua D. Drake wrote: > >> 4 1/2 seconds for a count(*) ? This seems a bit rough - is there >> anything else I can try to optimize my Database? You can imagine that >> slightly more complex queries goes out the roof. > > Well a couple of things. > > 1. You put all your money in the wrong place.. 1 hard drive!!??!! Yes, I realize 1 hard drive could cause a bottle neck, but on average I'm sitting on a 1-2% wait for IO. > 2. What is your maintenance regimen? Vacuum, Analyze???? I'm doing a daily VACUUM ANALYZE, but just to be on the safe side, I performed one manually before I ran my test, thinking that I might have to up the frequency. > > Joshua D. Drake > >> >> Any help appreciated >> >> Regards >> >> Willo van der Merwe >> > >