Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 1536D4758BD for ; Tue, 1 Oct 2002 03:37:05 -0400 (EDT) Received: from www.pspl.co.in (www.pspl.co.in [202.54.11.65]) by postgresql.org (Postfix) with ESMTP id E9604475E22 for ; Tue, 1 Oct 2002 03:36:58 -0400 (EDT) Received: (from root@localhost) by www.pspl.co.in (8.11.6/8.11.6) id g917cLq00856 for ; Tue, 1 Oct 2002 13:08:21 +0530 Received: from daithan (daithan.intranet.pspl.co.in [192.168.7.161]) by www.pspl.co.in (8.11.6/8.11.0) with ESMTP id g917cLv00845 for ; Tue, 1 Oct 2002 13:08:21 +0530 From: "Shridhar Daithankar" To: Date: Tue, 01 Oct 2002 13:07:27 +0530 MIME-Version: 1.0 Subject: Re: Vacuum question.. Reply-To: shridhar_daithankar@persistent.co.in Message-ID: <3D999E0F.15712.131F0DBA@localhost> In-reply-to: X-mailer: Pegasus Mail for Windows (v4.02) Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Content-description: Mail message body X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200210/3 X-Sequence-Number: 31002 On 30 Sep 2002 at 20:08, Williams, Travis L, NPONS wrote: > I have a DB that's about 1000 rows and 100 columns with 97 of them being updated every 20-30 min. This DB is basically all of the data that I poll off of 1000 different machines thats used by different scripts. How often should I run Vacuum? Would I be better off doing it every time after I do my updates? Well no. I would say every 15 minutes would be a good idea. How often do you query the table? Vacuum can do three things for you. 1) Update statistics so that planner chooses correct plan thus improving performance. 2) Update causes dead tuples of earlier verson. Vacuum analyze marks these dead tuples for reuse so that resources are used efficiently. 3) Vacuum full also retrieves any lost disk space when you do a bulk delete. Clearly in your case, (2) seems to be predominant factor. So I would say a vacuum analyze for each 15 minutes will keep things in good shape..Even half an hour would do.. Bye Shridhar -- Nachman's Rule: When it comes to foreign food, the less authentic the better. - - Gerald Nachman