pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: PFC <lists@peufeu.com>
To: Jesper Krogh <jesper@krogh.cc>
To: pgsql-performance@postgresql.org
Subject: Re: "Slow" query or just "Bad hardware"?
Date: Thu, 27 Mar 2008 17:57:06 +0100
Message-ID: <op.t8opdgzscigqcu@apollo13.peufeu.com> (raw)
In-Reply-To: <17799.195.41.66.226.1206632068.squirrel@mail.jabbernet.dk>
References: <17799.195.41.66.226.1206632068.squirrel@mail.jabbernet.dk>


Also, sometimes offine TOASTing is evil :
Say you have a forum, you want the posts table to be CLUSTER'ed on  
(topic_id, post_id) so displaying 1 page with 30 posts on it uses 1 seek,  
not 30 seeks. But CLUSTER doesn't touch the data that has been pushed  
offline in the toast table. So, in that case, it can pay (big time  
actually) to disable toasting, store the data inline, and benefit from  
cluster.

So basically :

Data that is seldom used or used only in queries returning/examining 1 row  
bu otherwise eats cache -> push it away (toast or partition)
Data that is used very often in queries that return/examine lots of rows,  
especially if said rows are in sequence (cluster...) -> keep it inline





view thread (7+ messages)  latest in thread

Message-ID: <op.t8opdgzscigqcu@apollo13.peufeu.com>
Permalink:  ../op.t8opdgzscigqcu@apollo13.peufeu.com/
Also on:    postgresql.org/message-id/op.t8opdgzscigqcu@apollo13.peufeu.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: lists@peufeu.com, jesper@krogh.cc
  Subject: Re: "Slow" query or just "Bad hardware"?
  In-Reply-To: <op.t8opdgzscigqcu@apollo13.peufeu.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