pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: John Beaver <john.e.beaver@gmail.com>
To: Gaetano Mendola <mendola@gmail.com>
To: Pgsql-Performance <pgsql-performance@postgresql.org>
Subject: Re: large tables and simple "= constant" queries using indexes
Date: Thu, 10 Apr 2008 12:37:45 -0400
Message-ID: <47FE4259.7030704@gmail.com> (raw)
In-Reply-To: <47FE3DC7.4010700@gmail.com>
References: <47FD2DF3.80500@gmail.com>
	<47FD3350.4060504@tweakers.net>
	<47FD4212.8040404@gmail.com>
	<47FDBE23.8020402@tweakers.net>
	<op.t9dy1aqwcigqcu@apollo13.peufeu.com>
	<Pine.LNX.4.64.0804101042050.20402@aragorn.flymine.org>
	<47FE27EB.8050804@gmail.com>
	<47FE3DC7.4010700@gmail.com>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
  <title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Thanks Eric and Gaestano - interesting, and both examples of my
naivite. :)<br>
<br>
I tried running large select(*) queries on other tables followed by
another try at the offending query, and it was still fast. Just to be
absolutely sure this is a scalable solution, I'll try restarting my
computer in a few hours to see if it affects anything cache-wise.<br>
<br>
<br>
Gaetano Mendola wrote:
<blockquote cite="mid:47FE3DC7.4010700@gmail.com" type="cite">
  <pre wrap="">John Beaver wrote:

  </pre>
  <blockquote type="cite">
    <pre wrap="">- Trying the same constant a second time gave an instantaneous result,
I'm guessing because of query/result caching.
    </pre>
  </blockquote>
  <pre wrap=""><!---->
AFAIK no query/result caching is in place in postgres, what you are experiencing
is OS disk/memory caching.


Regards
Gaetano Mendola


  </pre>
</blockquote>
</body>
</html>



view thread (15+ messages)  latest in thread

Message-ID: <47FE4259.7030704@gmail.com>
Permalink:  ../47FE4259.7030704@gmail.com/
Also on:    postgresql.org/message-id/47FE4259.7030704@gmail.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 using the --to and --cc options:
  reply via email

  To: pgsql-performance@postgresql.org
  Cc: john.e.beaver@gmail.com, mendola@gmail.com
  Subject: Re: large tables and simple "= constant" queries using indexes
  In-Reply-To: <47FE4259.7030704@gmail.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