Re: table clustering brings joy

From: Ron Mayer <rm_pg(at)cheapcomplexdevices(dot)com>
To: Greg Stark <gsstark(at)mit(dot)edu>
Subject: Re: table clustering brings joy
Date: 2005-08-17 18:45:55
Message-ID: 430385E3.2050104@cheapcomplexdevices.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Greg Stark wrote:

> clustering...
> That will only help if you're often retrieving moderately large result sets by
> one particular index. If you normally only retrieve one record at a time or
> from lots of different indexes then it probably won't really make much
> difference.

It'll also help for columns whose values are related in some way.

For example, clustering a table of addresses based on "zip code"
will help lookups based on city or county or state (presumably
because all the disk pages for a given city will be grouped
together within the disk pages for the zip codes within the city).

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Ron Mayer 2005-08-17 18:57:52 Re: Finding nearest numeric value
Previous Message Dr NoName 2005-08-17 18:26:10 COMMIT in ps output