From: PFC <lists@peufeu.com>
To: Alexander Staubo <alex@purefiction.net>
Cc: Jim C. Nasby <decibel@decibel.org>
Cc: pgsql-performance@postgresql.org <pgsql-performance@postgresql.org>
Subject: Re: Feature suggestion : FAST CLUSTER
Date: Sun, 27 May 2007 20:44:20 +0200
Message-ID: <op.tsz0z6n2cigqcu@apollo13> (raw)
In-Reply-To: <88daf38c0705271127x3fb1e83cp7d42e417cf046840@mail.gmail.com>
References: <op.tspwemefcigqcu@apollo13>
<20070527155338.GM92628@nasby.net>
<op.tszxrsircigqcu@apollo13>
<88daf38c0705271127x3fb1e83cp7d42e417cf046840@mail.gmail.com>
> How does it know what to cluster by? Does it gather statistics about
> query patterns on which it can decide an optimal clustering, or does
> it merely follow a clustering previously set up by the user?
Nothing fancy, InnoDB ALWAYS clusters on the primary key, whatever it is.
So, if you can hack your stuff into having a primary key that clusters
nicely, good for you. If not, well...
So, I used (topic_id, post_id) as the PK, even though it isn't the real
PK (this should be post_id)...
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, alex@purefiction.net, decibel@decibel.org
Subject: Re: Feature suggestion : FAST CLUSTER
In-Reply-To: <op.tsz0z6n2cigqcu@apollo13>
* 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