Re: Feature suggestion : FAST CLUSTER

From: PFC <lists(at)peufeu(dot)com>
To: "Alexander Staubo" <alex(at)purefiction(dot)net>
Cc: "Jim C(dot) Nasby" <decibel(at)decibel(dot)org>, "pgsql-performance(at)postgresql(dot)org" <pgsql-performance(at)postgresql(dot)org>
Subject: Re: Feature suggestion : FAST CLUSTER
Date: 2007-05-27 18:44:20
Message-ID: op.tsz0z6n2cigqcu@apollo13
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

> 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)...

In response to

Browse pgsql-performance by date

  From Date Subject
Next Message Chris 2007-05-28 03:53:16 Re: Postgres Benchmark Results
Previous Message Alexander Staubo 2007-05-27 18:27:31 Re: Feature suggestion : FAST CLUSTER