X-Original-To: pgsql-general-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.193]) by svr1.postgresql.org (Postfix) with ESMTP id 826BE30E9E3; Tue, 17 Jun 2003 02:55:16 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (svr1.postgresql.org [64.117.224.193]) (amavisd-new, port 10024) with ESMTP id 05081-09; Mon, 16 Jun 2003 23:55:06 -0300 (ADT) Received: from relay11.austria.eu.net (relay11.Austria.eu.net [193.154.160.115]) by svr1.postgresql.org (Postfix) with ESMTP id E8ED430EFC2; Mon, 16 Jun 2003 23:55:04 -0300 (ADT) Received: from sisyphus.vogelsinger.at (vogelsinger.at [193.154.189.26]) by relay11.austria.eu.net (8.12.9/8.12.0.Beta10) with ESMTP id h5H2t1c8031687; Tue, 17 Jun 2003 04:55:01 +0200 Message-Id: <5.1.1.6.2.20030617044100.02dd1c70@mail.vogelsinger.at> X-Sender: homebird@mail.vogelsinger.at X-Mailer: QUALCOMM Windows Eudora Version 5.1.1 Date: Tue, 17 Jun 2003 04:54:56 +0200 To: "Nikolaus Dilger" From: Ernest E Vogelsinger Subject: Re: [PERFORM] Interesting incosistent query timing Cc: pgsql-performance@postgresql.org, pgsql-general@postgresql.org In-Reply-To: <20030616192059.23131.h003.c001.wm@mail.dilger.cc.criticalp ath.net> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" X-Archive-Number: 200306/976 X-Sequence-Number: 43906 At 04:20 17.06.2003, Nikolaus Dilger said: --------------------[snip]-------------------- >My guess is that the second execution of the query is >shorter since the data blocks are cached in memory. >When you modify the data then it needs to be read again >from disk which is much slower than from memory. The >short execution after restarting PostgreSQL seems to >indicate that your data is cached in the Linux buffer >cache. > >The only strange thing seems to be that you have so few >rows. Are you getting the data from a remote machine? >How many bytes does a single row have? Are they really >large??? --------------------[snip]-------------------- What exactly do you mean? This table is quite filled (2.3 million rows), but the query results are correct. -- >O Ernest E. Vogelsinger (\) ICQ #13394035 ^ http://www.vogelsinger.at/