Received: from megazone.bigpanda.com ([63.150.15.178]) by postgresql.org (8.11.3/8.11.4) with ESMTP id fA6H78m69724 for ; Tue, 6 Nov 2001 12:07:09 -0500 (EST) (envelope-from sszabo@megazone23.bigpanda.com) Received: by megazone.bigpanda.com (Postfix, from userid 1001) id 06781D5DB; Tue, 6 Nov 2001 09:07:09 -0800 (PST) Received: from localhost (localhost [127.0.0.1]) by megazone.bigpanda.com (Postfix) with ESMTP id E62A55BDE; Tue, 6 Nov 2001 09:07:09 -0800 (PST) Date: Tue, 6 Nov 2001 09:07:09 -0800 (PST) From: Stephan Szabo To: Manuel Duran Aguete Cc: Subject: Re: Perfomance problems In-Reply-To: <1005087741.10200.43.camel@dt1010.quantum.int> Message-ID: <20011106090527.V44948-100000@megazone23.bigpanda.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Archive-Number: 200111/20 X-Sequence-Number: 2545 On 6 Nov 2001, Manuel Duran Aguete wrote: > Hi > > I'm building an app (A) that inserts about 30.000 - 40.000 records in a > table per day. Another app (B) get this records and process it, an then > the records are deleted. The A app gets 50 records each time, this SQL > statement takes 10-15 seconds. I make a vaccum and the time is now about > 5-10 seconds, bu it's to slow. It enqueue records, about 10-20 in each. > The B app takes less than a second in process each message. First did you do just a vacuum or a vacuum analyze, and what does explain show for the query, and do you have any very frequent (out of scale for the average values) values that aren't null in the data? Also, are the indexes a single index for each of those fields or a single multicolumn index?