pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Ernest E Vogelsinger <ernest@vogelsinger.at>
To: Nikolaus Dilger <nikolaus@dilger.cc>
Cc: pgsql-performance@postgresql.org
Cc: pgsql-general@postgresql.org
Subject: Re: [PERFORM] Interesting incosistent query timing
Date: Tue, 17 Jun 2003 04:54:56 +0200
Message-ID: <5.1.1.6.2.20030617044100.02dd1c70@mail.vogelsinger.at> (raw)
In-Reply-To: <20030616192059.23131.h003.c001.wm@mail.dilger.cc.criticalp ath.net>

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/





view thread (7+ messages)  latest in thread

Message-ID: <5.1.1.6.2.20030617044100.02dd1c70@mail.vogelsinger.at>
Permalink:  ../5.1.1.6.2.20030617044100.02dd1c70@mail.vogelsinger.at/
Also on:    postgresql.org/message-id/5.1.1.6.2.20030617044100.02dd1c70@mail.vogelsinger.at

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-performance@postgresql.org
  Cc: ernest@vogelsinger.at, nikolaus@dilger.cc, pgsql-general@postgresql.org
  Subject: Re: [PERFORM] Interesting incosistent query timing
  In-Reply-To: <5.1.1.6.2.20030617044100.02dd1c70@mail.vogelsinger.at>
  References: <5.1.1.6.2.20030617044100.02dd1c70@mail.vogelsinger.at>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox