pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Qingqing Zhou <zhouqq@cs.toronto.edu>
To: pgsql-performance@postgresql.org
Subject: Re: Help in avoiding a query 'Warm-Up' period/shared buffer cache
Date: Thu, 5 Jan 2006 22:08:05 -0500
Message-ID: <dpkms7$1van$1@news.hub.org> (raw)
References: <200601041449.43557.mliberman@mixedsignals.com>
	<dpk922$slo$1@news.hub.org>
	<200601051815.36181.mliberman@mixedsignals.com>


"Mark Liberman" <mliberman@mixedsignals.com> wrote
>
> Now, my follow-up question / assumption.  I am assuming that the  IO time 
> is
> so long on that index because it has to read the entire index (for that
> file_id) into memory
>
> any confirmation / corrections to my assumptions are greatly appreciated. 
> E.g. is
> the compound index the way to go, or the solo index on file_id?
>

Only part of the index file is read. It is a btree index. Keep the index 
smaller but sufficient to guide your search is always good because even by 
the guidiance of the index, a heap visit to get the real data is not 
avoidable.

Regards,
Qingqing 





view thread (6+ messages)  latest in thread

Message-ID: <dpkms7$1van$1@news.hub.org>
Permalink:  ../dpkms7$1van$1@news.hub.org/
Also on:    postgresql.org/message-id/dpkms7$1van$1@news.hub.org

 · 

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: zhouqq@cs.toronto.edu
  Subject: Re: Help in avoiding a query 'Warm-Up' period/shared buffer cache
  In-Reply-To: <dpkms7$1van$1@news.hub.org>

* 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