Received: from localhost (maia-3.hub.org [200.46.204.184]) by postgresql.org (Postfix) with ESMTP id DAC799FB1E2 for ; Tue, 9 Jan 2007 16:18:21 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.184]) (amavisd-new, port 10024) with ESMTP id 68458-09 for ; Tue, 9 Jan 2007 16:18:05 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 Received: from out5.smtp.messagingengine.com (out5.smtp.messagingengine.com [66.111.4.29]) by postgresql.org (Postfix) with ESMTP id 2A6C29FA432 for ; Tue, 9 Jan 2007 16:18:08 -0400 (AST) Received: from out1.internal (unknown [10.202.2.149]) by out1.messagingengine.com (Postfix) with ESMTP id BC0BF7355D; Tue, 9 Jan 2007 15:14:28 -0500 (EST) Received: from web2.messagingengine.com ([10.202.2.211]) by out1.internal (MEProxy); Tue, 09 Jan 2007 15:14:28 -0500 Received: by web2.messagingengine.com (Postfix, from userid 99) id 99F281A82; Tue, 9 Jan 2007 15:14:28 -0500 (EST) Message-Id: <1168373668.28926.1168412995@webmail.messagingengine.com> X-Sasl-Enc: Sh0Z0cHHXowpfm6uSV260OgK8y4vfi/GQ/q+ERHhKdkO 1168373668 From: "Jeremy Haile" To: "Florian Weimer" Cc: pgsql-performance@postgresql.org Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="ISO-8859-1" MIME-Version: 1.0 X-Mailer: MessagingEngine.com Webmail Interface References: <1168363601.5177.1168380907@webmail.messagingengine.com> <82d55okrim.fsf@mid.bfk.de> Subject: Re: High inserts, bulk deletes - autovacuum vs scheduled In-Reply-To: <82d55okrim.fsf@mid.bfk.de> Date: Tue, 09 Jan 2007 15:14:28 -0500 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200701/120 X-Sequence-Number: 22721 Good advice on the partitioning idea. I may have to restructure some of my queries, since some of them query across the whole range - but it may be a much more performant solution. How is the performance when querying across a set of partitioned tables vs. querying on a single table with all rows? This may be a long term idea I could tackle, but is probably not feasible for my current time-frame.=20=20 Does my current approach of disabling autovacuum and manually vacuuming once-an-hour sound like a good idea, or would I likely have better results by auto-vacuuming and turning row-level stats back on? On Tue, 09 Jan 2007 19:02:25 +0100, "Florian Weimer" said: > * Jeremy Haile: >=20 > > I'd like any performance advice, but my main concern is the amount of > > time vacuum/analyze runs and its possible impact on the overall DB > > performance. Thanks! >=20 > You could partition your data tables by date and discard old data > simply by dropping the tables. This is far more effective than > vacuuming, but obviously, this approach cannot be used in all cases > (e.g. if you need more dynamic expiry rules). >=20 > --=20 > Florian Weimer > BFK edv-consulting GmbH http://www.bfk.de/ > Kriegsstra=DFe 100 tel: +49-721-96201-1 > D-76133 Karlsruhe fax: +49-721-96201-99