Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 2AAC947624F for ; Fri, 2 Aug 2002 12:21:09 -0400 (EDT) Received: from mta4.snet.net (mta4.snet.net [204.60.203.76]) by postgresql.org (Postfix) with ESMTP id 92AC947624B for ; Fri, 2 Aug 2002 12:21:08 -0400 (EDT) Received: from pop.snet.net ([204.60.203.73]) by mta4.snet.net (8.12.3/8.12.3/SNET-mx-1.2/D-1.1.1.1/O-1.1.1.1) with ESMTP id g72GL2IN001321 for ; Fri, 2 Aug 2002 12:21:02 -0400 (EDT) X-Originating-IP: [64.252.95.167] X-SBCIS-MTA: [pop.snet.net] Received: from [192.168.1.83] (167.95.252.64.snet.net [64.252.95.167]) by pop.snet.net (8.12.3/8.12.3/SNET-pop-1.2/D-1.1.1.1/O-1.1.1.1) with ESMTP id g72GLCT0003949 for ; Fri, 2 Aug 2002 12:21:13 -0400 (EDT) Subject: Re: Seeking advice regarding a design problem From: Wei Weng To: pgsql-sql@postgresql.org In-Reply-To: <1028305002.9763.31.camel@Monet> References: <1028305002.9763.31.camel@Monet> Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Ximian Evolution 1.0.8 Date: 02 Aug 2002 12:21:12 -0400 Message-Id: <1028305273.9762.33.camel@Monet> Mime-Version: 1.0 X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200208/39 X-Sequence-Number: 8885 Forgot to mention, the version of postgresql I am running is 7.1.3. On Fri, 2002-08-02 at 12:16, Wei Weng wrote: > I am running postgresql as database backend, and I have some scripts > dealing with constant incoming data and then insert these data into the > database, in a quite complex way, involving a couple of procedures. > > But the performance of the database is worse than I had thought. After > about 100 times of the script being run, the speed of the insertion > slowed down dramatically. But it went back to the regular fast speed > after I did a vacuum analyze. > > how can I redesign the system to avoid the bottleneck? And why is it > that postgresql can slow down so much after doing some complex > operations? > > > Thanks > > > -- > Wei Weng > Network Software Engineer > KenCast Inc. > > > > ---------------------------(end of broadcast)--------------------------- > TIP 6: Have you searched our list archives? > > http://archives.postgresql.org > -- Wei Weng Network Software Engineer KenCast Inc.