pg.ddx.io  pgsql-students@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Scott Ribe <scott_ribe@elevated-dev.com>
To: preetika tyagi <preetikatyagi@gmail.com>
Cc: pgsql-general@postgresql.org General <pgsql-general@postgresql.org>
Subject: Re: query execution time
Date: Mon, 21 Mar 2011 10:06:34 -0600
Message-ID: <376244CD-113E-4A82-A346-54D819B96947@elevated-dev.com> (raw)
In-Reply-To: <AANLkTi=qu2L4YXnfvBPF2C5ZX8gCDfMTkfZgMd1mgwye@mail.gmail.com>
References: <AANLkTi=FhaO5mX_YdqqsF1Yh0YNEHW8H1f0AUdpE0Fmo@mail.gmail.com>
	<AANLkTin2oebHpSB5fEQxMBv1UPCq9Q4OqWZnxygNY2j_@mail.gmail.com>
	<AANLkTi=hN+GMGRLCzqzTvu+LWUcaQ4HFikzuaPwa4z80@mail.gmail.com>
	<603AF880-82C8-4CC7-A9E9-914A602A06DC@enterprisedb.com>
	<AANLkTi=qu2L4YXnfvBPF2C5ZX8gCDfMTkfZgMd1mgwye@mail.gmail.com>

On Mar 21, 2011, at 9:55 AM, preetika tyagi wrote:

> For example, if A is 15 minutes, then B is 1.5 hrs. 

Well, considering that random disk access is on the order of 10,000 times slower than RAM...

But you can answer the question yourself by comparing the query run against cold caches (after a reboot, or various command-line tricks to purge cache) vs against warm caches (twice back-to-back).

-- 
Scott Ribe
scott_ribe@elevated-dev.com
http://www.elevated-dev.com/
(303) 722-0567 voice







view thread (8+ messages)  latest in thread

Message-ID: <376244CD-113E-4A82-A346-54D819B96947@elevated-dev.com>
Permalink:  ../376244CD-113E-4A82-A346-54D819B96947@elevated-dev.com/
Also on:    postgresql.org/message-id/376244CD-113E-4A82-A346-54D819B96947@elevated-dev.com

 · 

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-students@postgresql.org
  Cc: scott_ribe@elevated-dev.com, preetikatyagi@gmail.com, pgsql-general@postgresql.org
  Subject: Re: query execution time
  In-Reply-To: <376244CD-113E-4A82-A346-54D819B96947@elevated-dev.com>
  References: <AANLkTi=FhaO5mX_YdqqsF1Yh0YNEHW8H1f0AUdpE0Fmo@mail.gmail.com> <AANLkTin2oebHpSB5fEQxMBv1UPCq9Q4OqWZnxygNY2j_@mail.gmail.com> <AANLkTi=hN+GMGRLCzqzTvu+LWUcaQ4HFikzuaPwa4z80@mail.gmail.com> <603AF880-82C8-4CC7-A9E9-914A602A06DC@enterprisedb.com> <AANLkTi=qu2L4YXnfvBPF2C5ZX8gCDfMTkfZgMd1mgwye@mail.gmail.com> <376244CD-113E-4A82-A346-54D819B96947@elevated-dev.com>

* 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