X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.130]) by svr1.postgresql.org (Postfix) with ESMTP id C4519D1B8C5 for ; Wed, 3 Sep 2003 20:49:39 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (neptune.hub.org [64.117.224.130]) (amavisd-new, port 10024) with ESMTP id 42294-10 for ; Wed, 3 Sep 2003 17:49:09 -0300 (ADT) Received: from lakemtao04.cox.net (lakemtao04.cox.net [68.1.17.241]) by svr1.postgresql.org (Postfix) with ESMTP id 96F64D1B97B for ; Wed, 3 Sep 2003 17:49:07 -0300 (ADT) Received: from lhosts ([68.11.66.83]) by lakemtao04.cox.net (InterMail vM.5.01.06.04 201-253-122-130-104-20030726) with ESMTP id <20030903204910.PUTY29613.lakemtao04.cox.net@lhosts> for ; Wed, 3 Sep 2003 16:49:10 -0400 Subject: Re: SQL slower when running for the second time From: Ron Johnson To: PgSQL Performance ML In-Reply-To: <1062616558.3f563dee5ccd4@sistemica.info> References: <1062616558.3f563dee5ccd4@sistemica.info> Content-Type: text/plain Message-Id: <1062622143.7341.388.camel@haggis> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.4 Date: Wed, 03 Sep 2003 15:49:03 -0500 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200309/29 X-Sequence-Number: 3395 On Wed, 2003-09-03 at 14:15, Rhaoni Chiu Pereira wrote: > Hi List, > > I trying to increase performance in my PostgreSQL but there is something > wrong. when I run this SQL for the first time it takes 1 min. 40 seconds to > return, but when I run it for the second time it takes more than 2 minutes, and > I should retunr faster than the first time. > > Does anyone have a advice ? Is it a query or insert/update? -- ----------------------------------------------------------------- Ron Johnson, Jr. ron.l.johnson@cox.net Jefferson, LA USA "Vanity, my favorite sin." Larry/John/Satan, "The Devil's Advocate"